I am trying to upload images into my web page but it doesnt work. it works locally! Maybe it has to do something with directory permissions or the path that I am using like this: ../post_images/name.jpg. What do you think? what I should do?
Here are the warning that I get:
Warning: move_uploaded_file(../post_images/del_piero2.jpg)
[function.move-uploaded-file]: failed to open stream:
Permission denied in /home/vhosts/www.domain.com/admin/classes/controllers.class.php on line 324
Warning: move_uploaded_file()
[function.move-uploaded-file]:
Unable to move '/tmp/phpuOHgMs'
to '../post_images/del_piero2.jpg'
in /home/vhosts/www.domain.com/admin/classes/controllers.class.php on line 324
This is how I use it: move_uploaded_file($tmp_name, “../post_images/”.$name);
U need to set a folder permissions or right click in (windows) on FOLDER(check it)
In unix ->