Re: include and include-virtual

From: Date: Wed, 23 May 2001 21:23:53 +0000
Subject: Re: include and include-virtual
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-54119@lists.php.net to get a copy of this message
Christian, Those are SSI calls (Server Side Includes, for use with .shtml files). Try: include("/path/to/filename"); require("/path/to/filename"); I've never used these, but in PHP4 there are also: include_once("/path/to/filename"); and require_once("/path/to/filename"); (double check that I have gotten those function names right). If you REALLY need to use something like exec cgi, I guess you could create an shtml file with the command in, then include() or require() the shtml file. James. "Christian Dechery" <lemming@vento.com.br> wrote in message news:5.0.0.25.2.20010523172748.02114890@pop.tanamesa.com.br... > What is the main difference between: > <!--#include ... > <!--#include virtual ... > <!--#exec cgi... > > the only one that seems to work for PHP files is 'include virtual'. > 'exec cgi' as well as 'include' gives me that message 'an error > ocurred > while processing this directive'... > > > -- > 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 (#54119) next »