Hi,
i'm doing a site that use a personal filemanager that works in php to upload files from client to server with forms.
I have a big problem:
i've tested the same program on two different linux servers both with redhat 7.0
and php4.0.4. In one server (the oldest) it works really well, on the other the server inserts in the uploaded file an header that modifies file structures.
For example if i send a text file that contains the string "Hello world" , when i open it in server it will show "Content-type = text/plain". The real matter is that i need to send gif,pdf,doc files and in this way it's impossible to open files in server because their structure is modified!!
I'va notice that the only difference is in the way they save temporary file in /tmp directory.The one that doesn't work save this way: /tmp/nsform....; the other saves:
tmp/php......
Please help me !!!