PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I recently installed a classified php program. Installation went fine and everything works except when i try to upload an image with a new classified add it gives me this error.
Warning: Unable to create '/advt/image/28.jpg': No such file or directory in /home/********/public_html/advt/account.php on line 83
Warning: imagejpeg: unable to open '/advt/image/thumb/28.jpg' for writing in /home/********/public_html/advt/common.php on line 171
Warning: Cannot add header information - headers already sent by (output started at /home/*******/public_html/advt/account.php:83) in /home/*******/public_html/advt/account.php on line 91
I am not very experienced with php but have installed a few modules. Thanks for your help in advanced.
The procss owner does not have sufficient rights to write to the directory, in a shared environment it is most common to set the directory world writeable, can be done with a good FTP program or from shell with chmod 777 directoryname
If you own the server and have root access you could create a new group, make the webserver process owner a member of this group, make the owner of the directory a member of the same group and change the group on the dir and make it group writeable (775)
thats what i dont understand. Both folder and subfolder as indicated in the directions have been CHMOD to 777 and i double checked the permissions both via my CPANEL and FTP PRO and it says 777 when i check the permissions.