ID:               26241
 Updated by:       [EMAIL PROTECTED]
 Reported By:      Brad dot Youngblood at 4S dot com
-Status:           Open
+Status:           Feedback
 Bug Type:         IIS related
 Operating System: Windows NT
 PHP Version:      4.3.3
 New Comment:

Please double-check that the file you are trying to access 
is on a filesystem that is local to the webserver.  
 
It looks a bit like you're trying to do something 
silly ... 


Previous Comments:
------------------------------------------------------------------------

[2003-11-13 11:14:49] Brad dot Youngblood at 4S dot com

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 this bug report at http://bugs.php.net/?id=26241&edit=1

Reply via email to