User's Forum & Discussion Groups
|
Subject |
Author |
Time Posted |
Rating |
|
How do I upload a file using PHP? |
|
|
|
|
|
 Votes:0
|
|
|
|
|
Hi,
I just recently began working on PHP and came across a problem that I have not been able to solve. Basically, I'm trying to upload images to the server but I am getting errors such as "the server can not find the directory specified" and "permission denied". Any ideas as to what might be the cause?
..Thanks
Ron
|
|
|
|
|
|
Re:How do I upload a file using PHP? |
|
|
|
|
|
 Votes:0
|
|
|
|
|
Mr Ron,
We have tutorials on our PHP section that can help you solve the most common problems when uploading a file. See [http://www.erobo.net/scripts/php/scripts_code.php?id=1§ion=PHP&division=file+upload+operations] for an example. Also, I would recommend you double checking file permissions on the directory you intend to use as "target directory". Usually, you should set permissions to 777 on these types of folders. Finally, make sure that you specify the right path to that directory in your PHP script before moving the file to the server.
Good Luck!..
Moderator #7
|
|
|
|
|
|
|
Go Back