Bug #13594: Symbolic Link

From: Date: Mon, 08 Oct 2001 03:52:48 +0000
Subject: Bug #13594: Symbolic Link
Groups: php.dev 
Request: Send a blank email to php-dev+get-67519@lists.php.net to get a copy of this message
From: Ashwin.Kutty@Dal.Ca Operating system: Linux 2.4.7-2 PHP version: 4.0.6 PHP Bug Type: *Directory/Filesystem functions Bug description: Symbolic Link (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 bug report at: http://bugs.php.net/?id=13594&edit=1

« previous php.dev (#67519) next »