note 77050 added to function.is-uploaded-file

From: Date: Mon, 13 Aug 2007 04:18:12 +0000
Subject: note 77050 added to function.is-uploaded-file
Groups: php.notes 
Request: Send a blank email to php-notes+get-129433@lists.php.net to get a copy of this message
It isn't mentioned anywhere that I've seen, but $filename *is* case-sensitive on Windows. It means that while C:\Windows\TEMP\php123.tmp may have been uploaded, C:\Windows\Temp\php123.tmp was not. I found this out because I was using realpath() on the filename which 'fixed' the case (my Temp folder is in titlecase, not uppercase - thank you Vista). Anyways, the problem was that PHP used %TEMP% to determine the destination for the uploaded file, and %TEMP% used the all-capitals version of the path. Changing it to use titlecase instead + restarting Apache fixed the problem. ---- Server IP: 69.147.83.197 Probable Submitter: 71.217.71.185 ---- Manual Page -- http://www.php.net/manual/en/function.is-uploaded-file.php Edit -- https://master.php.net/note/edit/77050 Del: integrated -- https://master.php.net/note/delete/77050/integrated Del: useless -- https://master.php.net/note/delete/77050/useless Del: bad code -- https://master.php.net/note/delete/77050/bad+code Del: spam -- https://master.php.net/note/delete/77050/spam Del: non-english -- https://master.php.net/note/delete/77050/non-english Del: in docs -- https://master.php.net/note/delete/77050/in+docs Del: other reasons-- https://master.php.net/note/delete/77050 Reject -- https://master.php.net/note/reject/77050 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#129433) next »