Php Image upload problem

kieran

Registered
Jan 8, 2003
2
0
151
Can anyone help here? I've been trying endlessly to get images uploaded to the server using a php form to upload images to a given directory permissions set to CHMOD 777 but it gives no errors. When I check the given directory the images are not there? Any help please!!
 

Damian

Well-Known Member
Oct 1, 2001
106
6
318
You may want to check that [b:851c4a8b0b]file_uploads[/b:851c4a8b0b] is enabled.

If you have page that display phpinfo(); search for file_uploads and make sure that it's on (set to 1). If you don't create a PHP file with the following:


&? phpinfo(); ?&

Upload it and view it from a browser.
 

kieran

Registered
Jan 8, 2003
2
0
151
Upload Problem

Thanks Damian for the reply. I have done what you told me with the &? phpinfo(); ?& file and it is set to 1
Anymore help here please!
 

Damian

Well-Known Member
Oct 1, 2001
106
6
318
Hey Kieran,

I'd be looking at the PHP manual at this stage, as I'd say it's an environment setting. Take a look here : http://www.php.net/manual/en/features.file-upload.php

Of course, if you can try your script elsewhere and/or get a script that you *know* works and try it on your own account it will help to pinpoint it.