Click to See Complete Forum and Search --> : PHP


maxl stylee
12-15-2000, 06:40 PM
i have just started fooling around with PHP..
and i'm using a simple command here:


<?
system(uptime)
?>


It will work on a regular .html page..
however, i've tried numerous times on a .shtml page...and it won't work.
the reason i'm using .shtml is because i have been using SSI (Server Side Inclue) to bring the pages together.

now, would it just be easier to use PHP
and use the <? include(top.txt) ?> ?

or should i stick with SSI?
also: why won't that code work? (.shtml?)

Alex

Sweede
12-15-2000, 07:31 PM
php is designed to replace ssi, so do that.

it is -impossible- to ssi a php page and expect it to work.

to execute SSI pages in php scripts (dont know why you would want to do this),
check out www.php.net/virtual (http://www.php.net/virtual)