I have in Unix-system SHTML -document with <!--#exec cgi="/cgi-bin/news/news.cgi"--> command. How can i do that same thing in PHP -document ?
Are you tring to SSI a php script into an SHTML document or parse a cgi script into a PHP document?
To SSI a php script into a SHTML doc:
<!--#include virtual="/path/to/php/script.php"-->
To parse a cgi into a PHP script:
<?
virtual ("/cgi-bin/news/news.cgi"
?>
These only work with Apache (since the virtual is an Apache command). For other web servers I think you would have to use the <!--#exec file="file.php"--> for the SSI php in an SHTML ... and
<?
include("
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.