PHP can't upload?
Moderator: General Moderators
PHP can't upload?
Hi. I'm a newbie to the forum and a newbie to php.
I've tried 4 different php upload scripts, but none of them work. They all say "upload failed" or some other generic error. I've looked through php.ini to check the settings, and this is what it's like:
safe mode: off
register globals: on
uploads: on
It's php 4 on apache on a Fedora Core 3 web server. Is there anything else I should check? I've been at this all day. Thanks.
I've tried 4 different php upload scripts, but none of them work. They all say "upload failed" or some other generic error. I've looked through php.ini to check the settings, and this is what it's like:
safe mode: off
register globals: on
uploads: on
It's php 4 on apache on a Fedora Core 3 web server. Is there anything else I should check? I've been at this all day. Thanks.
- shiznatix
- DevNet Master
- Posts: 2745
- Joined: Tue Dec 28, 2004 5:57 pm
- Location: Tallinn, Estonia
- Contact:
have u tried this one?
http://ee.php.net/features.file-upload
http://ee.php.net/features.file-upload
- Ambush Commander
- DevNet Master
- Posts: 3698
- Joined: Mon Oct 25, 2004 9:29 pm
- Location: New Jersey, US
- Ambush Commander
- DevNet Master
- Posts: 3698
- Joined: Mon Oct 25, 2004 9:29 pm
- Location: New Jersey, US
the reason for chmoding 777 is to find the reason why. Saying do not chmod 777 without any further explanation does not help anything in this matter.
if you do not want to chmod, then use other means to have write permission. If you are on shared hosting, then do not leave folder with write permission (people on the same server can hack your site).
I normally use ftp function to chmod the folder, when the job is done, chmod the folder again to prevent write permssion.
if you do not want to chmod, then use other means to have write permission. If you are on shared hosting, then do not leave folder with write permission (people on the same server can hack your site).
I normally use ftp function to chmod the folder, when the job is done, chmod the folder again to prevent write permssion.