Page 1 of 1

file upload problem

Posted: Thu Apr 10, 2003 12:33 pm
by phpcoder
hello
i have linux 8.0 and php4.3 when i try to exeute file upload script i got err
can not read......
but if i execute the same script on linux 7.2 it works well with php 4.0
plz help
i have set 777 permission on directory where the file is to be copied..

Posted: Thu Apr 10, 2003 11:17 pm
by bionicdonkey
your code probably isn't compatible with the new php version.

Posted: Thu Apr 10, 2003 11:28 pm
by m3mn0n
Or maybe a setting needs to be changed. :?

Got a snipplet and an exact error messege?

Posted: Fri Apr 11, 2003 4:28 am
by pootergeist
after 4.2 you'd need to access all file variables through the $_FILES array and not through global scope or even $HTTP_POST_FILES - just means you need to update/upgrade your script.