Bug #15133 Updated: SSI
| From: | tim dot lokot at s1 dot com dot au | Date: | Mon, 21 Jan 2002 03:11:59 +0000 |
| Subject: | Bug #15133 Updated: SSI | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-77628@lists.php.net to get a copy of this message | ||
ID: 15133
User updated by: tim.lokot@s1.com.au
Reported By: tim.lokot@s1.com.au
Old Status: Feedback
Status: Open
Bug Type: Feature/Change Request
Operating System: Windows
PHP Version: 4.1.1
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2002-01-20 22:08:46] rasmus@php.net
"php.exe -q" doesn't work on Windows?
------------------------------------------------------------------------
[2002-01-20 22:04:09] tim.lokot@s1.com.au
You kind of understood ....
I was aware of the expose setting in the ini file, but it would be nice
to be able to modify this at runtime.
How can you run that -q command from within a windows environment like
IIS?
------------------------------------------------------------------------
[2002-01-20 22:02:26] rasmus@php.net
Adding -q is sufficient. No PHP changes needed here.
------------------------------------------------------------------------
[2002-01-20 22:00:05] daniel@php.net
At least on UN*X systems you can run PHP perfectly as SSI - just do a
SSI include
<!--#include virtual="phpscript.cgi" -->
where phpscript.cgi is a script which first line points to your PHP
executable:
#!/usr/bin/php
which could also be c:\progra~\php\php.exe (I think).
Or did I completely misunderstand you?
Also the X-Powered-By can be switched off. Either by
/usr/bin/php -q
which omits all HTTP-headers (such as Content-type and X-Powered-By) or
by configuration directive:
expose_php = On ; Decides whether PHP may expose the fact that it is
installed
; server (e.g., by adding its signature to the Web server
header).
; It is no security threat in any way, but it makes it possible
; to determine whether you use PHP on your server or not.
Kind Regards,
Daniel Lorch
------------------------------------------------------------------------
[2002-01-20 21:43:01] tim.lokot@s1.com.au
Is it possible to enable future versions of PHP to be run as an SSI
directive so that languages like Perl do not have to be used instead
for this purpose? Currently PHP sends out the X-Powered-By headers
everytime it's run including all the other default headers making it
difficult to run PHP as SSI without having all the headers display to
the screen.
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=15133&edit=1