Bug #15133 Updated: SSI
| From: | imajes@php.net | Date: | Mon, 21 Jan 2002 07:04:50 +0000 |
| Subject: | Bug #15133 Updated: SSI | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-77640@lists.php.net to get a copy of this message | ||
ID: 15133
Updated by: imajes
Reported By: tim.lokot@s1.com.au
Status: Open
Bug Type: Feature/Change Request
Operating System: Windows
PHP Version: 4.1.1
New Comment:
alternatively, why not have your isp make a new filtered extension,
like .pssi or something, which has the executable set as php.exe -q ?
Previous Comments:
------------------------------------------------------------------------
[2002-01-20 23:56:30] daniel@php.net
Well, on UN*X, too you don't have to supply the path to PHP.
But as you are implying, a script is either called "normally" OR from a
SSI include. So every script which is called by SSI could have a "php
-q" at the beginning, right? Your set_expose would therefore be
redundant (unless -q is not possible from within IIS).
Is it possible, or not, to run a PHP-script with -q on IIS?
Kind Regards,
Daniel Lorch
------------------------------------------------------------------------
[2002-01-20 22:32:19] tim.lokot@s1.com.au
Under IIS, you do not have to supply the path to the executable in
every script. That's the nature of windows. It works via file
extension association.
My solution is to create a function called set_expose("off") or
whatever fits in with the php naming conventions so that this can be
set at runtime from within the script. Thus forcing php to not send
out any headers by itself.
------------------------------------------------------------------------
[2002-01-20 22:28:34] daniel@php.net
But this a completely intended behaviour. On UN*X you have to provide
the -q as well in _every script_ which should be used as output called
from a SSI directive.
Where do you have to make this setting? Globally for all PHP scripts?
Or can it be done in every script. I don't know IIS, sorry.
Kind Regards,
Daniel Lorch
------------------------------------------------------------------------
[2002-01-20 22:11:59] tim.lokot@s1.com.au
Under IIS you specify what script engine runs your php file. Basically
says that all files with extension .php are run by c:/php/php.exe or
whatever the executable is.
You COULD put the -q in there, but that would apply for all users. Can
you specify -q at runtime so that my ISP (or any ISP for that matter)
doesn't have to set explicit settings for this? That way it gets left
up to the programmer HOW they want their php scripts run.
Forcing -q on all users would mean that everyone of the ISP's clients
would have to output all the headers just to get their scripts running.
------------------------------------------------------------------------
[2002-01-20 22:08:46] rasmus@php.net
"php.exe -q" doesn't work on Windows?
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/?id=15133
Edit this bug report at http://bugs.php.net/?id=15133&edit=1