Forum Moderators: coopster

Message Too Old, No Replies

PHP and SSI

Can the two be combined?

         

MatthewHSE

2:42 pm on Sep 3, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi all,

The subject line pretty much says it: can you call server-side includes from within a PHP file? If so, are there any special instructions, or does it work just like a normal SSI?

Thanks,

Matthew

lorax

5:05 pm on Sep 3, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



include() [php.he.net]

daisho

4:30 pm on Sep 7, 2003 (gmt 0)

10+ Year Member



No not really. Though everything you could do in SSI you can do 10 times over and better in PHP.

Like lorax said instead of <!--#include virtual='myfile.htm' --> simply do <?include 'myfile.htm';?> in php.

daisho.

jatar_k

5:30 pm on Sep 7, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



You have to pick one

it would be like trying to have files parsed for
asp and perl
php and perl
php and asp

you can only have files parsed for a single server side language or it gets very confused. ;)