I need some php help on script like im not sure if php effects it but i just someone to code my site www.customupload.com everythign is workin except when u upload something u get the url put past the url in the address bar and i get this: "Forbidden You don't have permission to access /uploads//16f6e6d9766b47be567b41587d19cd38jpg on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. -------------------------------------------------------------------------------- Apache/1.3.37 Server at customupload.com Port 80" Help is need thanx i have a account in dp like with 600 post but :S this is like my first time on dp for 3 months forgot the pass
Where is the upload directory located? If it is a directory under the main directory the correct call would be to uploads//16f6e6d9766b47be567b41587d19cd38jpg on this server. The first / may be causing the problem. Also you have a double // after the word uploads. Generally this causes no problems but it can. edit: Also there is no period before the jpg. Maybe that is a typo only?
The directory path is wrong. It should be something like: /home/username/domains/domain.com/public_html/uploads Peace,
It may also be a problem with the way in which your server sets the CHMOD of the file upon being uploaded via PHP. Make sure the uploaded file receives a CHMOD of either 644, 755 or 777. You can test this by first CHMOD'ing the file via FTP, then checking whether it can be viewed in the browser.