July 23rd, 2000, 03:38 PM
I posted here a while ago with a sessions.
Now I got everything working more or less smoothly, but now I am getting a stupid message before any php script outputs:
X-Powered-By: PHP/4.0.0 Expires: Thu, 19 Nov 1981 08:52:00 GMT Cache-Control: no-cache, post-check=0, pre-check=0 Pragma: no-cache Content-type: text/html
For any other scripts:
X-Powered-By: PHP/4.0.0 Content-type: text/html
In other words, before any other text appears on the page, one of the above messages appears.
This is really bothersome to have this appear in every single output page. Why did this start happening and how can I get rid of it??
July 24th, 2000, 03:56 AM
This may be related:
expose_php = On ; Decides whether PHP may expose the fact that it is installed on the
; 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.
This is int the php.ini file.
[This message has been edited by lhallusa (edited July 24, 2000).]
July 24th, 2000, 09:14 AM
Thanks for the reply.
I already thought of this and turned it OFF...however, this only gets rid of the
line. Everything else stays. Strangely, this started happening just as I defined the session_save.path as c:/windows/temp in php.ini.
I've gone through the php.ini file, but I can't seem to find anything that could be related to this message. Other suggestions??
July 25th, 2000, 08:30 AM
In php.ini comment out (using all of the Windows Extensions. I ran into this with the switch from PHP3 to PHP4 which doesn't use any of those extensions.
July 26th, 2000, 03:03 PM
aarongb, son of a gun! you're right!
I had "mysql" uncommented in windows extensions and it worked. I'll have to see if mysql will work after this.
Thanks a lot!