Bug #15893 Updated: Weird URLs execute PHP scripts

From: Date: Wed, 06 Mar 2002 06:32:30 +0000
Subject: Bug #15893 Updated: Weird URLs execute PHP scripts
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-1741@lists.php.net to get a copy of this message
ID: 15893 Updated by: derick@php.net Reported By: petskippy@hotmail.com -Status: Open +Status: Bogus Bug Type: Apache related Operating System: Windows 2000 SP2 PHP Version: 4.1.1 New Comment: 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 Previous Comments: ------------------------------------------------------------------------ [2002-03-05 23:30:01] petskippy@hotmail.com Sorry... it was v 4.1.1, not 4.1.2 ------------------------------------------------------------------------ [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

« previous php.bugs (#1741) next »