Re: PHP & ssi

From: Date: Fri, 21 Dec 2001 20:26:09 +0000
Subject: Re: PHP & ssi
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-78514@lists.php.net to get a copy of this message
Try virtual() http://uk.php.net/virtual Something like: virtual('cgi-bin/ssirand.cgi?REGION=Sports'); regards, Philip Olson On Fri, 21 Dec 2001, Nick wrote: > Well the include line I needed was this: > <!--#include virtual="/cgi-bin/ssirand.cgi?REGION=Sports" --!> > > That didn't work since the filetype is PHP. After some searching on the > developers website I came across a posting for getting the thing to work on > PHP3, so I tried it (even tho i'm using PHP4) and it worked. This is what I > had to use: > <? > $ads = `cd /home/sites/www.delriolive.com/web/pay; > /home/sites/www.delriolive.com/web/pay/ssirand.cgi Region=localRICH`; > echo $ads; > ?> > > It worked perfectly. If you know how to get the include file to work > though, i'd rather use it. Thanks :) > > -Nick > > > From: Shane Wright <me@shanewright.co.uk> > > Reply-To: me@shanewright.co.uk > > Date: Fri, 21 Dec 2001 17:54:42 +0000 > > To: php-general@lists.php.net > > Subject: Re: [PHP] PHP & ssi > > > > Hi Nick, > > > > No, this isnt possible - but the constructs in PHP should allow you to do > > anything you can do with SSI just as easily. > > > > -- > > Shane > > > > On Friday 21 Dec 2001 5:45 pm, Nick wrote: > >> Is it possible to have a .php file parse SSI's? I tried adding .php as a > >> SSI file but it overwrote the php type, and wouldn't display PHP. And > >> vice-versa. If not, i'd hafta write a php script that executes a program, > >> and take the output from that program and parse it, which I don't know how > >> to do. If anyone can help on that, please do so, and if anyone knows how > >> to get SSI working with PHP, please let me know how. Thanks. > >> > >> -Nick > > > > -- > > 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 > > > > > -- > 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 (#78514) next »