[PHP] include and include-virtual

2001-05-23 Thread Christian Dechery

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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] include and include-virtual

2001-05-23 Thread James, Yz

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 [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 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: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] include and include-virtual

2001-05-23 Thread Christian Dechery

At 22:23 23/5/2001 +0100, James, Yz wrote:
Christian,

Those are SSI calls (Server Side Includes, for use with .shtml files).

I know what they are... I wanna know what's the difference between them


Try:

include(/path/to/filename);
require(/path/to/filename);

no... I want SSI calls cause this is to be changed in a pure html (with 
html extension) file...

. Christian Dechery (lemming)
. http://www.tanamesa.com.br
. Gaita-L Owner / Web Developer


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] include and include-virtual

2001-05-23 Thread David Robley

On Thu, 24 May 2001 10:00, Christian Dechery wrote:
 At 22:23 23/5/2001 +0100, James, Yz wrote:
 Christian,
 
 Those are SSI calls (Server Side Includes, for use with .shtml files).

 I know what they are... I wanna know what's the difference between them

That's really an apache-related question. Try

http://httpd.apache.org/docs/mod/mod_include.html

-- 
David Robley  Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES  Flinders University, SOUTH AUSTRALIA  

   It's half a score, Tom said often.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]