note 110050 deleted from function.readfile by googleguy

From: Date: Fri, 14 Sep 2012 20:19:40 +0000
Subject: note 110050 deleted from function.readfile by googleguy
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-190772@lists.php.net to get a copy of this message
Note Submitter: pabloa at trustedtranslations dot net ---- If you have a file /home/user/test.txt then all these calls will work fine: <? readfile("/home/user/test.txt"); // obviously, but also ... readfile("/home/something_else/../user/test.txt"); // and even ... readfile("/home/one/../user/two/../test.txt"); ?> This is even if no directory called "something_else" or "one", "two", exist. It took me hours to figure this out.

« previous php.notes (#190772) next »