Bug #15893 Updated: Weird URLs execute PHP scripts
| From: | petskippy at hotmail dot com | Date: | Wed, 06 Mar 2002 04:30:01 +0000 |
| Subject: | Bug #15893 Updated: Weird URLs execute PHP scripts | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-1734@lists.php.net to get a copy of this message | ||
ID: 15893
Updated by: petskippy@hotmail.com
Reported By: petskippy@hotmail.com
Status: Open
Bug Type: Apache related
Operating System: Windows 2000 SP2
-PHP Version: 4.1.2
+PHP Version: 4.1.1
New Comment:
Sorry... it was v 4.1.1, not 4.1.2
Previous Comments:
------------------------------------------------------------------------
[2002-03-05 23:24:57] petskippy@hotmail.com
I'm running PHP v4.1.2 on Apache 1.3.23 on Windows 2000 Pro (SP2)
I've installed Apache via the MSI, and unzipped PHP into c:\PHP. I've
attempted to run PHP as an Apache module.
After adding the following lines to my httpd.conf I can get PHP to
execute:
LoadModule php4_module modules/php4apache.dll
AddModule mod_php4.c
AddType application/x-httpd-php .php .phtml
I've also changed these lines in php.ini (located in my C:\WINNT
directory):
doc_root = d:\website
extension_dir = c:\php\extensions
Now I find I can run PHP. But what I find weird is this:
I can run a script called testme.php with BOTH of these URLs:
http://localhost/testme.php
http://localhost/testme/php
http://localhost/testme#php
http://localhost/testme/php
http://localhost/testme?php
Can someone please tell me how to stop the all but the first occurance?
This works for ANY PHP scripts I create.
Any help would be greatly appreciated.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=15893&edit=1