Forum Moderators: coopster
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!