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
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++)
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?
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
4 matches
Mail list logo