Forum Moderators: coopster

Message Too Old, No Replies

failed to open stream: No such file or directory

         

korduran

3:00 pm on May 27, 2009 (gmt 0)

10+ Year Member



Hi people! and HEEEEEEEEEEEELLLLLLLP!

I have a weird problem. I am running WAMP 2.0 on windows XP, using mozilla and chrome.

I am trying to develop an image gallery system using PHP however when i go to upload an image via the browser to my database and subsequent image folder, i get this...

Warning: move_uploaded_file(/ig_images/photo000039.jpg) [function.move-uploaded-file]: failed to open stream: No such file or directory in C:\Program Files\wamp\www\db\admin\index.php on line 22

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move 'C:\Program Files\wamp\tmp\php60.tmp' to '/ig_images/photo000039.jpg' in C:\Program Files\wamp\www\db\admin\index.php on line 22

Also get the same thing when i try to run this short test script...

<?php $filename = 'C:\Program Files\wamp\www\testarea\a.jpg';
if (is_readable($filename)) {
echo 'The file is readable';
} else {
echo 'The file is not readable';
}
?> which returned "The file is not readable"

My friend ran the same code on his mac and it worked fine. So i have no ideas left.

Can anyone help me? I couldn't find anything like this anywhere...

Thanks!

andrewsmd

8:54 pm on May 27, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Possibly this c:\\program files\\wamp\\www\\testarea\\a.jpg. Just a guess.

korduran

1:16 am on May 28, 2009 (gmt 0)

10+ Year Member



Thanks for the help andrewsmd.

For some reason it appears to be working again...

Magic! O_O...