...

View Full Version : php equiv



GO ILLINI
09-04-2005, 10:50 PM
what would be the pho equivilant of this:
<!--#exec cmd="cgi-bin/randhtml.cgi"-->
I dont like shtml because it uses lots of bandwicth and the script is goin on a huge page.

Fou-Lu
09-05-2005, 01:23 AM
The exact duplicate for that on an apache is virtual(). However, your post leads me to believe your asking for include():


<?php
include('./page.php');
?>

// page.php
<?php
echo 'Hello World';
?>

GO ILLINI
09-05-2005, 04:03 AM
i dont think so. you might be right. becaue isnt there an include ssi? isnt there an exec on php? my server has apache

Fou-Lu
09-05-2005, 04:59 AM
exec() can run you into more problems than its worth.
Can this file be executed by the browser? If so, include will work just fine. Virutal I believe will only work on #include, but I don't use SSI so I don't know for sure, let alone what the difference between them is.

GO ILLINI
09-05-2005, 05:03 AM
i know a little but i never really got into ssi



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum