PHP Classes

Failed to Open Stream

Recommend this page to a friend!

      AJAX File Uploader  >  All threads  >  Failed to Open Stream  >  (Un) Subscribe thread alerts  
Subject:Failed to Open Stream
Summary:function.copy did not work
Messages:3
Author:Craig Abalos
Date:2005-12-14 22:00:11
Update:2007-05-18 11:38:57
 

  1. Failed to Open Stream   Reply   Report abuse  
Picture of Craig Abalos Craig Abalos - 2005-12-14 22:00:11
Error msg:

Warning: copy(_Chaplin_EasyStreet.jpg) [function.copy]: failed to open stream: No such file or directory in c:\InetPub\wwwroot\ajaxUploader\imageupload.php on line 16
Failed to uploaded file

I've worked on this for a while but can't figure out what I'm doing wrong.

I'm trying to upload a file from the C:\ drive to the localhost using IIS5.1.

Maybe that's the problem, but I wanted to check.

Thanks.

  2. Re: Failed to Open Stream   Reply   Report abuse  
Picture of Er. Rochak Chauhan Er. Rochak Chauhan - 2005-12-15 02:39:52 - In reply to message 1 from Craig Abalos
I guess The problem is '\\' with DIRECTORY_SEPARATOR (which is \ in windows and / in *NIX)

If that doesn't solve the problem, letme know

  3. Re: Failed to Open Stream   Reply   Report abuse  
Picture of Trashorras Trashorras - 2007-05-18 11:38:57 - In reply to message 2 from Er. Rochak Chauhan
How solved it the problem of separtor_directory(\\) because, I have the next warning--- Warning: copy(D:\\Grupo Empresas\\Webs\\Team BM\\fotos_teambm\\TEAM_BM-691.jpg) [function.copy]: failed to open stream: No such file or directory in C:\Inetpub\vhosts\team-bm.com\httpdocs\gestion\guardar_nota.php on line 37.