I created a script php to upload files on my Linux server (nothing new) Here you are the script: if ($imgfile != "none") { if (is_uploaded_file($imgfile)) { move_Uploaded_File($imgfile, "upload" .$imgfile_name); echo "Immagine inviata correttamente<br>"; } else { echo "Possible errore nell'upload del file: filename '$imgfile'<br>"; }; }; the script work perfect but a strange thing happen: the file i upload on Linux server is bigger than the one on my computer (win2000) (let's say 30 bytes more). What's wrong with it? Every suggest is very appreciate. Bye.
Windows and UNIX sometimes disagree on how to display the size of a file. Are the files still the same size if you download the uploaded file from the unix box to the windows machine?
No, the size is different i can see the image (if is a jpg or gif) with e.g. ACDsee but I can't see it with my browser. I tried to install apache, php 4.0.4pl1 on my win2k and uploaded some images with the script php, everything works fine.