php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #15893 Weird URLs execute PHP scripts
Submitted: 2002-03-05 23:24 UTC Modified: 2002-03-06 01:32 UTC
From: petskippy at hotmail dot com Assigned:
Status: Not a bug Package: Apache related
PHP Version: 4.1.1 OS: Windows 2000 SP2
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: petskippy at hotmail dot com
New email:
PHP Version: OS:

 

 [2002-03-05 23:24 UTC] petskippy at hotmail dot 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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-03-05 23:30 UTC] petskippy at hotmail dot com
Sorry... it was v 4.1.1, not 4.1.2
 [2002-03-06 01:32 UTC] derick@php.net
Please write to php-general@lists.php.net for support questions, this bug system is not meant for that.
You possible have "Multiviews" turned on, you need to turn that off (in httpd.conf).

Derick
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Jun 02 18:01:26 2025 UTC