#26241 [NEW]: fopen fails to locate file

From: Date: Thu, 13 Nov 2003 16:14:49 +0000
Subject: #26241 [NEW]: fopen fails to locate file
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-50338@lists.php.net to get a copy of this message
From: Brad dot Youngblood at 4S dot com Operating system: Windows NT PHP version: 4.3.3 PHP Bug Type: IIS related Bug description: fopen fails to locate file Description: ------------ I am currently running an application that allows the user to browse for a file, attach it to an email, and send it out. This works fine while running on my local system off an Apache server. However when I run it off my companys webserver - Windows 2000 Server, IIS 5.0 - fopen can not find the file. The code is the same for both as is php.ini. The permission on the attached file are open. Any help would be greatly appreciated Reproduce code: --------------- $fh = fopen($file, "rb"); $data = fread($fh, filesize($file)); $file_name = basename($file); Expected result: ---------------- A successful open of the file Actual result: -------------- Warning: fopen(C:\\Projects\\test.doc): failed to open stream: No such file or directory -- Edit bug report at http://bugs.php.net/?id=26241&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=26241&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=26241&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=26241&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=26241&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=26241&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=26241&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=26241&r=support Expected behavior: http://bugs.php.net/fix.php?id=26241&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=26241&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=26241&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=26241&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26241&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=26241&r=dst IIS Stability: http://bugs.php.net/fix.php?id=26241&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=26241&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=26241&r=float

« previous php.bugs (#50338) next »