2013-08-20 19:05
浏览 56


I am getting an error while uploading images to my website host. But I don't experience any problems on my WAMP server. This is the error I am getting.

[20-Aug-2013 00:58:27 America/Denver] PHP Warning:  copy(/photos/Light-And-Snow.jpg) [<a href='function.copy'>function.copy</a>]: failed to open stream: No such file or directory in /home/rajeev/public_html/upload.php on line 86

The code on line 86 is

                "INSERT INTO
                    gallery_photos (
                ) VALUES(
                ) or die(mysql_error() . 'Photo not uploaded');

            $filetype = $photos_uploaded['type'][$counter];

            $extention = $known_photo_types[$filetype];

// Store the orignal file
copy($photos_uploaded['tmp_name'][$counter], $images_dir."/".$photos_uploaded['name'][$counter]);

What am I doing wrong? Thanks for any directions...

1条回答 默认 最新

相关推荐 更多相似问题