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

2001-03-21 Thread Rasmus Lerdorf
Doesn't make a whole lot of sense to do so, but include virtual should work just fine. -Rasmus On Wed, 21 Mar 2001, Christian Dechery wrote: > Can't I > > or > or > ??? > > I'm trying to, the script works fine if I load it normally, but as an include > in a shtml (server parsed) file it alwa

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

2001-03-21 Thread Christian Dechery
>this will work, however: > > > > > > that is the problem... THIS is not working... I have my html file like this: index.shtml ... stuff... and it's not working... there are 4 "include virtual"'s on this page... this would be the 5th... all of them work,why not this one? _

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

2001-03-21 Thread Christian Dechery
>You could just do a rename *.shtml *.php under >DOS or UNIX or cp *.shtml ./*.php then >use some sort of regex program/function to replace >the internal links. I'm not willing to change my entire site (which have over 3.000 html files) just because PHP can't do something... I'd rather work som

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

2001-03-21 Thread almir
you can include through http ,I did it even remotly and it works fine but slow, see in manual how to read files through http -almir ""Christian Dechery"" <[EMAIL PROTECTED]> schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Can't I or or ??? I'm trying to, the script wor

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

2001-03-21 Thread Joe Sheble (Wizaerd)
virtual (PHP 3, PHP 4 ) Perform an Apache sub-request int virtual (string filename) Virtual() is an Apache-specific function which is equivalent to in mod_include. It performs an Apache sub-request. It is useful for including CGI scripts or .shtml files, or anything else that you would parse thr

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

2001-03-21 Thread Christian Dechery
>When I first started playing with PHP I had been using SSI's. I tried to >find a way that I could get a file that contained SSI's and php to be >parsed, but I haven't seen it done. In Apache it seems like it would be >as >easy as adding a handler that parses shtml files as php files, but that >

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

2001-03-21 Thread Phillip Bow
When I first started playing with PHP I had been using SSI's. I tried to find a way that I could get a file that contained SSI's and php to be parsed, but I haven't seen it done. In Apache it seems like it would be as easy as adding a handler that parses shtml files as php files, but that causes

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

2001-03-21 Thread Christian Dechery
>you won't be able to use $PHP_SELF, and you will encounter problems with >passing values via the querystring, but other than that you can use SSI >to >call a PHP page. I don't really need any of this, the script is a simple 15-lines-of-code image randomizer that shows a random image from a list.

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

2001-03-21 Thread Christian Dechery
>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. I don't wanna rename all my shtml files (which are a LOT) and change all my links to .php in files like

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

2001-03-21 Thread Jon Haworth
Wow, error messages are getting better these days ;-) Are you running PHP as a CGI interpreter or a server module? -Original Message- From: Christian Dechery [mailto:[EMAIL PROTECTED]] Sent: 21 March 2001 16:20 To: [EMAIL PROTECTED] Subject: [PHP] include virtual, file or exec cgi?

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

2001-03-21 Thread Brian V Bonini
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. -Brian *** > -Original Message- > From: Christian Dechery [mailto:[EMAIL PROTECTED]] >