PHP coders out there?

Kreskin

Doctor of Thinkology
Feb 23, 2006
21,155
149
63
Any know php coding?

An invision board modification allows one to integrate a board's latest posts into a site's main webpage. I have uploaded everything I need to make it work except I don't understand the imbedding of the code into the main page. The writer of the script says imbed . Does that make any sense? Shouldn't it be something like <?php #include virtual="/yourmainforumdirectory/latest_posts.php";?>

The guy who wrote the mod doesn't respond to anyone's questions but from comments seen the mod works for some. Frankly, I'm a complete noob with PHP. If anyone knows this stuff I would appreciate some advice.

Thanks
 

Andem

dev
Mar 24, 2002
5,645
129
63
Larnaka
Hey Kreskin,

It would look like:

Code:
<?php include("/path/to/forums/file.php"); ?>

Your host must support php and in some cases, the file that you are including it in must end in the extension .php, or else it won't get parsed.

You can use
Code:
if its a non php file but you must specify in your .htaccess file:

Code:
AddType text/html .html
AddHandler server-parsed .html

(an example if your file is ending in html).