i've searched all over the net about this problem but haven't came across a single page mentioning it. the problem is:
i have a normal file upload code via forms to upload some images. the code worked neatly on my local server(WinXP + apache + PHP 5 beta). but when i ran it on the final server (linux+apache + PHP 4.3.11), the whole thing starts to go crazy. the temporary files in the '/tmp' folder turn out to be of size: 0 bytes. no matter how big or small file i upload, the tmp files are always empty though the file is created.
when i 'print_r($_FILES)', there is no error and the size value is equal to that of the uploaded file. no matter what i do with the access permissions(all set to 777), the temp files refuse to be anything but empty. the 'is_uploaded_file()' func. returns FALSE and i dont understand why. safe_mode is 0 and open_basedir is NULL. i'm totally lost 😕 . i suspect it's a problem with the server config or soemthing. is it so?
any help would really, really be appreciated....
btw...there is also a problem when i try uploading files a bit larger(not much: 15kb) than the test files in the above case. when i do this $_FILES contains an error code of 3: partial upload. does this have something to do with the above problem?...