note 103662 modified in reserved.variables.files by danbrown

From: Date: Tue, 26 Apr 2011 22:10:21 +0000
Subject: note 103662 modified in reserved.variables.files by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-179180@lists.php.net to get a copy of this message
Having url rewrite patterns in .htaccess file which modify your urls can affect $_FILES sometimes. Even though the php page loads and works fine, this variable may not work because of it. Therefore if you rewrite 'www.example.com' to 'example.com', make sure you use the latter one when sending POST to the php page. I'm still not sure why this happens, but its worth noting here so others don't spend time chasing ghosts. --was-- Having url rewrite patterns in .htaccess file which modify your urls can affect $_FILES sometimes. Even though the php page loads and works fine, this variable may not work because of it. Therefore if you rewrite 'www.something.com' to 'something.com', make sure you use the latter one when sending POST to the php page. I'm still not sure why this happens, but its worth noting here so others don't spend time chasing ghosts. http://php.net/manual/en/reserved.variables.files.php

« previous php.notes (#179180) next »