#exec and php together

From: Date: Tue, 03 Jul 2001 17:16:49 +0000
Subject: #exec and php together
Groups: php.general 
Request: Send a blank email to php-general+get-56022@lists.php.net to get a copy of this message
I'm trying to include the output of a php script into a standard html file via SSI #exec. The following is a sample php file (hello.php): <?php echo "Hello World!\n"; ?> and the following is the sample html file (hello.htm): <HTML> <BODY> <!--#exec cgi="hello.php" --> </BODY> </HTML> both files are in the same directory. If I issue http://www.mysite.com/hello.php the script works well and I obtain the page showing the message "Hello World!" but if I try http://www.mysite.com/hello.htm I obtain an empty page. My system is BSDI 4.1 + Apache 1.3.11 + PHP 4.0.3pl1 (both module and cgi version) but I've tested the same example on a Window NT 4 + Apache 1.3.12 + PHP 4.0.3pl1 (cgi version) without success. Any idea, suggestion ? Thanks. Dr. Paolo Ciraci ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Responsabile Sistemi Informativi webmaster@nautica.it Nautica Editrice S.r.l. http://www.nautica.it Via Tevere 44, Roma - tel 06 8413060

« previous php.general (#56022) next »