Forum Moderators: coopster

Message Too Old, No Replies

failed to open stream: No such file or directory

when i try to upload images on the domain onlinetrademart.com i get error

         

solutionforweb

1:22 pm on Sep 16, 2006 (gmt 0)



Can anyone helpme out please?. when i try to upload file through browser on my domain i get the following error.

Warning: copy(/uploadedimages/744069.gif): failed to open stream: No such file or directory in C:\Inetpub\vhosts\example.com\httpdocs\upload_image.php on line 53

Warning: Cannot modify header information - headers already sent by (output started at C:\Inetpub\vhosts\example.com\httpdocs\upload_image.php:53) in C:\Inetpub\vhosts\example.com\httpdocs\upload_image.php on line 91

and also this error on the other page.

logo.gif, size: 4819 [ Ok ]
Warning: copy(/uploadedimages/825810.gif): failed to open stream: No such file or directory in C:\Inetpub\vhosts\example.com\httpdocs\doupload.php on line 55

[edited by: jatar_k at 4:32 pm (utc) on Sep. 16, 2006]
[edit reason] examplified [/edit]

dreamcatcher

4:34 pm on Sep 16, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi solutionforweb, welcome to Webmaster World.

The clue is kind of in the error message. Its saying that the file it is trying to open does not exist. Have you checked to make sure the path is correct?

The header error will probably be related to the copy error as no data can be sent to the browser before this function is called. Hence that error appears.

dc

solutionforweb

10:40 am on Sep 18, 2006 (gmt 0)



yeah. i have tried giving the full permission to the folder. and i can find the folder where the uploadedimages will be placed. but still i am not able to rectify the problem.

henry0

12:21 pm on Sep 18, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



As per errors reading it looks like you are working out of a test server on your local machine.

What this could really mean is that your provided dir URL is not followed, on a local machine you may try using the long URL starting by C: etc... and instead of backslashes use slashes

Further on a local machine for ex: you have a test site named:
test a dir named: main and within main a dir named: img
So you could think that your pic should be directed as follow:
/main/img/my_pic.jpg
But it won't work for it should read
/test/main/img/my_pic.jpg

Good luck