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

2001-03-21 Thread Brian V Bonini
an Dechery [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 21, 2001 11:20 AM To: [EMAIL PROTECTED] Subject: [PHP] include virtual, file or exec cgi? Can't I !--#include file="something.php"-- or !--#include virtual="something.php"-- or !--#exec cgi="something.php

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 this

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. It

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 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 !–#include virtual...– in mod_include. It performs an Apache sub-request. It is useful for including CGI scripts or .shtml files, or anything else

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 !--#include file="something.php"-- or

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

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

2001-03-21 Thread Christian Dechery
this will work, however: body !--#include file="path/to/myfile.php"-- /body that is the problem... THIS is not working... I have my html file like this: index.shtml html body ... stuff... !--#include virtual="/path/to/banners.php"-- /body /html and it's not working... there are 4

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 !--#include file="something.php"-- or !--#include virtual="something.php"-- or !--#exec cgi="something.php"-- ??? I'm trying to, the