Forum Moderators: coopster

Message Too Old, No Replies

adding SSI to php pages?

Is this possible

         

rominosj

6:52 am on Sep 30, 2005 (gmt 0)

10+ Year Member



Hello,

Is it possible to add SSI to php pages or only to html pages? I tried using SSI for php but it doesn't seem to work..

KevinADC

9:12 am on Sep 30, 2005 (gmt 0)

10+ Year Member



(ask in the php forum, this is the perl forum)

SSI tags generally need to be in .shtml pages to get parsed by the server, so putting them in .php pages is not going to work. But there should be no need to use SSI tags in php pages, use php functions.

maccas

9:37 am on Sep 30, 2005 (gmt 0)

10+ Year Member



You mean PHP include [us3.php.net]

coopster

8:43 pm on Sep 30, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



KevinADC is correct in that using PHP you are already doing server-side includes, and a lot more. This past discussion and it's related links should help you on your way ...

Parse Both SSI & PHP in HTML? [webmasterworld.com]