[PHP] upload file size corruption?

2003-03-16 Thread Ronald Petty
I was wondering if php has a bug or is it apache, and how to determine which it it. Every file I upload to my server, I print the file size and it is twice the normal file size? Any idea what is going on, text files "look" ok, images are all screwed up, large text files are messed up too actually

Re: [PHP] php file writting ?

2003-03-14 Thread Ronald Petty
Yes I did. Here is the code, maybe I am just missing something (this is the part where it writes and then opens again... $h6 = fopen("/etc/group.backup","a"); for($i = 0; $i < count($users); $i++) { for($k = 0; $k < count($grouplines);$k++)

[PHP] php file writting ?

2003-03-14 Thread Ronald Petty
I open a file, modify it, save it out to disk. The VERY next line, i open it, and the size is zero. I look at the file and it is fine (not zero). I think there is a timing issue with php on file read/writes. I tried sleep(1), but all that did was slow the script down (didn't help). Any ideas?

[PHP] php 4.3.1 and apache 2.0.44 dont work on file uploads

2003-03-13 Thread Ronald Petty
I get files that twice the size when uploaded then the original. I am going to try the previous version of php and see if it works. If not Ill try the previous version of apache. Has anyone else seen this? I have scoured the archives and I am not the only person with this problem. Ron -- PH