SSI and PHP?

O

old.crazydave

Guest
Need a little help, how do you use SSI to include a php file? I've got a voting system working and want to use SSI to include it to make it appear on the side of every page. I've used SSI already to have content tables on the pages and they work fine.

Any ideas? Or won't it work.

Crazy Dave
Founder of the CCC
Crazed Cahoots Company
http://www.crazed.barrysworld.net
 
O

old.TrOnCeK

Guest
You just use include.

include("something.php");

When you only want to include a text file (not running the output) use require.

Check the PHP manual.
 
O

old.crazydave

Guest
Thanks

Thanks for the info but I sorted it out about a week ago, since no one responed to my post for ages. :)

I was using plain html files with the extension shtml and wanted to use SSI to include the php file. I've solved the problem now by converting the whole site to php.

Thanks anyway :)
 

Users who are viewing this thread

Top Bottom