View Full Version : SSI calls with PHP3?
Mario
07-20-1999, 02:44 PM
I thought I read somewhere on this forum about SSI calls being used within PHP3 files. Is that correct?[nbsp]
Justin
07-20-1999, 03:12 PM
You cannot use SSI commands within a PHP script... I don't see the need to, either - anything you can do with an SSI call can be done easier in PHP.
http://www.php.net/ for more info on the various commands.
------------------
Justin Nelson
FutureQuest Support
Benson
07-20-1999, 03:32 PM
I'm not sure what the question refers to exactly, but it is possible to do ssi-like feats on a .php web page using PHP functions.
woolthong
06-22-2000, 05:57 PM
this thread is old, but since i've been more of a 'taker' than 'giver' in this forum, i'll give a little...
if you have a .php document and you'd like to insert a SSI call (ie. for a cgi you're running), use the virtual() function... for example:
<? virtual ("/cgi-bin/blah.pl"); ?>
this is equivalent to <!--#include virtual="/cgi/blah.pl"--> in a .shtml file
for what its worth... -kysa
<EDIT:TT: disabled smilies>
sheila
08-23-2001, 09:10 PM
I'm trying to see how to do some of this SSI stuff, and looking at whether to use PHP or SSI or what...
Anyhow, I just wanted to clarify something in the last post before this one...the smiley is confusing and I think there was a syntax error in that statement, so based on my testing just moments ago:
To use a PHP virtual command to call a cgi script inside a PHP document:
<? virtual ("/cgi-bin/script.cgi"); ?>
Here's the docs on PHP's virtual command at PHP.net:
http://php.net/manual/en/function.virtual.php
vBulletin® v3.6.8, Copyright ©2000-2012, Jelsoft Enterprises Ltd.