Re: [PHP] Re: Upload problem - final size is different

2007-05-10 Thread Eric Trahan
enough to chmod($filename,0644); the file if it's just an image, or chmod($filename,0755); the file if it's a script. On 5/9/07, Eric Trahan <[EMAIL PROTECTED]> wrote: After some other tests, I think the problem is with the rights of the file. I made tests on my personnal Mac

Re: [PHP] Re: Upload problem - final size is different

2007-05-09 Thread Eric Trahan
ay to change the owner or the group of a file in PHP. Eric Le 2007-05-08 à 17:52, itoctopus a écrit : Have you tried your code on another server? -- itoctopus - http://www.itoctopus.com "Eric Trahan" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Hi, I have a form

Re: [PHP] Upload problem - final size is different

2007-05-08 Thread Eric Trahan
Le 2007-05-08 à 16:50, Richard Davey a écrit : By how much is the difference? Are we talking a few bytes, a few megabytes, what? A 116Kb file produce a 68Kb file on the server. And a 152Kb file produce a 48Kb file on the server... If you then download the file again, is it corrupted, o

Re: [PHP] Upload problem - final size is different

2007-05-08 Thread Eric Trahan
he problem is the file that is upload doesn't match the original file. Eric. Le 2007-05-08 à 14:04, Richard Lynch a écrit : On Tue, May 8, 2007 11:30 am, Eric Trahan wrote: The upload work. The user file is uploaded to my destination folder (page5/) but the file is unreadable and th

[PHP] Upload problem - final size is different

2007-05-08 Thread Eric Trahan
Hi, I have a form to upload file on my web server, so user can upload their images. The upload work. The user file is uploaded to my destination folder (page5/) but the file is unreadable and the file size is smaller than the original file size. I run Apache with PHP 4.1.2. Thank you,