PDA

View Full Version : How do I link a php page to my homepage?


PokerKnowledge
11-13-2005, 03:06 PM
Hi,
I've just installed a script that shows the lastest threads posted on my forum to be shown on a non vb page, but it's just on it's own the page.
What I want is the script to be inputed into my homepage so somewhere on my homepage there will be a little box showing you the lastest 5 threads from my forum. My homepage isn't done in php or anything like that it's a basic html page. Is this possible to somehow link the php page I have done to my homepage?

Cheers,
Jon

The Geek
11-13-2005, 09:01 PM
Hi,
I've just installed a script that shows the lastest threads posted on my forum to be shown on a non vb page, but it's just on it's own the page.
What I want is the script to be inputed into my homepage so somewhere on my homepage there will be a little box showing you the lastest 5 threads from my forum. My homepage isn't done in php or anything like that it's a basic html page. Is this possible to somehow link the php page I have done to my homepage?

Cheers,
Jon

Hi Jon,

If you are trying to put php in an HTML page, it wont work. To do what you are trying to do, you are going to need to rename the page extension .php for starters.

Then you could try something like this where you want it to run the page you mentioned:

bunch of HTML here
<?PHP
require_once('./forums/latest_threads.php');
?>
rest of html here

However that would depend on a lot of other things (ie that page spits out HTML and doesnt require you to call to vb's global).

Hope this helps and I hope I understood you right! :)