Hi,
To set the chmod 777 for your upload dir for windows environment (I suppose you have that) just right-click the upload folder -> select 'Properties', then select 'Sharing' -> 'Share this folder' -> and finally 'Permissions...' -> click all of the checkboxes.
If you are using linux, than i have no idea. I am sure others will tell you! Ask some of your computer guru friends!
Here is a code for file upload that should work. In case not, consult the php online manual, where there are a lot of user comments on the best methods of file upload.
So, here is the working code:
The idea is this:
- If no file upload has happened, print form.
- When upload is done, file is uploaded (and checked for the upload at the same time) and success message is displayed.
See, if helps!
Alfreds