Hi guys, I am writing my script so it will work on many setups with little customisation...
Anyways, i want to upload the images to the images/uploads directory but i get a
move_uploaded_file(../images/uploads/1pixel.gif): failed to open stream: No such file or directory in c:\documents and settings\dev\my documents\root\jay\admin\insert_image.php on line 79
and also
Warning: move_uploaded_file(): Unable to move 'C:\DOCUME~1\Dev\LOCALS~1\Temp\php38.tmp' to '../images/uploads/1pixel.gif' in c:\documents and settings\dev\my documents\root\jay\admin\insert_image.php on line 79
$upfile = '../images/uploads/'.$picture1_name;
if(is_uploaded_file($picture1))
{
if (!move_uploaded_file($picture1, $upfile))
{
echo 'Could not move file to destination directory';
exit;
}
}
How can i implement this keeping in mind i wish to use this on many setups without customization 🙂
thanks !