Bug #13594 Updated: Symbolic Link
| From: | cardinal@php.net | Date: | Mon, 08 Oct 2001 04:09:13 +0000 |
| Subject: | Bug #13594 Updated: Symbolic Link | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-67520@lists.php.net to get a copy of this message | ||
ID: 13594
Updated by: cardinal
Reported By: Ashwin.Kutty@Dal.Ca
Old Status: Open
Status: Bogus
Bug Type: *Directory/Filesystem functions
Operating System: Linux 2.4.7-2
PHP Version: 4.0.6
New Comment:
Your logic is based on the faulty assumption that http://www.mydomain.com/search/test is handled like a
directory. It's not, it's handled as a file with no associated mimetype. So, it's
treated with the default behavior by the webserver, which is typically to display its contents.
Basically, there's no reason for the web server to assume http://www.mydomain.com/search/test is a PHP script.
You can change that by using a ForceType directive in Apache.
Previous Comments:
------------------------------------------------------------------------
[2001-10-07 23:52:47] Ashwin.Kutty@Dal.Ca
(Posted on PHP General User List)
On a default install of Redhat 8 I tried the following:-
I have a directory with an index.php script so that the url is something along the lines of http://www.mydomain.com/search/ .. Now following the
same logic I wanted to write another script but not bother creating another directory so I wrote my
script called test.php and then created a symbolic link to it by pointing 'test' (without
the quotes, of course) to test.php and upon going to http://www.mydomain.com/search/test I got my
script's source displayed in plain text on the browser ..
Now maybe this is something I shouldnt be doing or the way I have the webserver configured but, just
thought Id find out, by checking to see if anyone else knows anything about this..
BTW, I am on a Redhat 8 Linux (kernel version 2.4.7-2) server running php version 4.0.6 and I have
checked in the conf of Apache (1.3.20) to see for the source its set to phps ..
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=13594&edit=1