hi guys,
i'm trying to upload an image, and I get this error:
Warning: move_uploaded_file(http://www.hellohello.com/ecards/images/uploaded/040315011343-yf2b6.jpg): failed to open stream: HTTP wrapper does not support writeable connections. in /home/hellohello/public_html/ecards/upload.php on line 72
Warning: move_uploaded_file(): Unable to move '/tmp/phpPnlHEp' to 'http://www.hellohello.com/ecards/images/uploaded/040315011343-yf2b6.jpg' in /home/hellohello/public_html/ecards/upload.php on line 72
this is the code snippet that contains line 72:
if(function_exists('is_uploaded_file'))
{
if(is_uploaded_file($HTTP_POST_FILES['attachment']['tmp_name']))
{
/*72*/if(move_uploaded_file($HTTP_POST_FILES['attachment']['tmp_name'], $cfg['dir_uploaded_images'] . $pic_name))
{
chmod($cfg['dir_uploaded_images'] . $pic_name ,octdec(666));
}
}
}
whats wrong??