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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Sun May 05 12:01:32 2024 UTC