มีปัญหาเรื่องuploaded_file ครับ ตรง move_uploaded_file() บน Web server ไม่ได้ แต่! กับใช้ บน AppServ ได้
Code
error : Warning: move_uploaded_file(/home/comzacom4/domains/comza.com/public_html/images/product/fc72d3b670f638d10243ec488b657e6e.jpg) [function.move-uploaded-file]: failed to open stream: Permission denied in /home/comzacom4/domains/comza.com/public_html/admin/product/processProduct.php on line 79
Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpd0A9iD' to '/home/comzacom4/domains/comza.com/public_html/images/product/fc72d3b670f638d10243ec488b657e6e.jpg' in /home/comzacom4/domains/comza.com/public_html/admin/product/processProduct.php on line 79
Warning: Cannot modify header information - headers already sent by (output started at /home/comzacom4/domains/comza.com/public_html/admin/product/processProduct.php:79) in /home/comzacom4/domains/comza.com/public_html/admin/product/processProduct.php on line 144
Code
/*
Upload an image and return the uploaded image name
*/
function uploadProductImage($inputName, $uploadDir)
{
$image = $_FILES[$inputName];
$imagePath = '';
$thumbnailPath = '';