RE: [PHP] include virtual, file or exec cgi?

From: Date: Wed, 21 Mar 2001 16:50:24 +0000
Subject: RE: [PHP] include virtual, file or exec cgi?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-44968@lists.php.net to get a copy of this message
Is there a reason you not using PHP's include method to do this? Rename your shtml file to have a PHP extension, replace the SSI instructions with PHP functions. You should be good to go. <? include "something.php"; ?> -Brian *************** > -----Original Message----- > From: Christian Dechery [mailto:lemming@vento.com.br] > Sent: Wednesday, March 21, 2001 11:20 AM > To: php-general@lists.php.net > Subject: [PHP] include virtual, file or exec cgi? > > > Can't I > > <!--#include file="something.php"--> or > <!--#include virtual="something.php"--> or > <!--#exec cgi="something.php"--> ??? > > I'm trying to, the script works fine if I load it normally, but > as an include > in a shtml (server parsed) file it always returns "error ocurred bla bla > bla". > > What am I doing wrong? > > > . [ Christian Dechery ] > . Webdeveloper @ Tá Na Mesa! > . Listmaster @ Gaita-L > . http://www.tanamesa.com.br > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > >

« previous php.general (#44968) next »