note 93495 deleted from ref.dir by googleguy

From: Date: Tue, 22 Oct 2013 11:16:50 +0000
Subject: note 93495 deleted from ref.dir by googleguy
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-197067@lists.php.net to get a copy of this message
Note Submitter: Ant P. ---- A simple reminder, but one most people (me included) will forget: If you're writing portable code, don't blindly assume URLs and filesystem paths have a 1:1 mapping! There could be any number of things affecting them - the server might have mod_rewrite rules, you could be in a chroot, PHP could even be running over FastCGI on a separate machine from the webserver entirely. Also don't rely on relative paths just because you think your own code hasn't called chdir(); you can use dirname($_SERVER[SCRIPT_FILENAME]) to figure out where you should be.

« previous php.notes (#197067) next »