Re: [PHP] fwrite not writing (simpler example), PHP 4.0.4pl1, Apache/1.3.14

2001-04-17 Thread Chris Anderson
I am using the latest version of Apache and PHP. Sorry I couldn't be of more help. - Original Message - From: "CC Zona" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, April 17, 2001 3:01 AM Subject: Re: [PHP] fwrite not writing (simpler example),

Re: [PHP] fwrite not writing (simpler example), PHP 4.0.4pl1, Apache/1.3.14

2001-04-16 Thread CC Zona
In article <012101c0c69b$b01b8d00$8b1412d1@null>, [EMAIL PROTECTED] ("Chris Anderson") wrote: > I tried it, even with the byte length identifer it worked perfectly for me. > As a last ditch effort try changing the w to w+. If not then it sounds like > a configuration issue for the webserver or p

Re: [PHP] fwrite not writing (simpler example), PHP 4.0.4pl1, Apache/1.3.14

2001-04-16 Thread Chris Anderson
From: "CC Zona" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, April 16, 2001 10:48 PM Subject: Re: [PHP] fwrite not writing (simpler example), PHP 4.0.4pl1, Apache/1.3.14 > In article <006701c0c699$ad65cdc0$8b1412d1@null>, > [EMAIL PROTECTED] ("Ch

Re: [PHP] fwrite not writing (simpler example), PHP 4.0.4pl1, Apache/1.3.14

2001-04-16 Thread CC Zona
In article <006701c0c699$ad65cdc0$8b1412d1@null>, [EMAIL PROTECTED] ("Chris Anderson") wrote: > come to think of it, why are you passing 3 arguements to fwrite()? Whoops! That's a typo left over from the last round of tests, adding every optional argument just in case something wasn't really

Re: [PHP] fwrite not writing (simpler example), PHP 4.0.4pl1, Apache/1.3.14

2001-04-16 Thread Chris Anderson
alright try removing the byte length identifier - Original Message - From: "Chris Anderson" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, April 16, 2001 1:20 PM Subject: Re: [PHP] fwrite not writing (simpler example), PHP 4.0.

Re: [PHP] fwrite not writing (simpler example), PHP 4.0.4pl1, Apache/1.3.14

2001-04-16 Thread Chris Anderson
come to think of it, why are you passing 3 arguements to fwrite()? - Original Message - From: "CC Zona" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, April 16, 2001 5:34 PM Subject: [PHP] fwrite not writing (simpler example), PHP 4.0.4pl1, Apache/1.3.14

Re: [PHP] fwrite not writing (simpler example), PHP 4.0.4pl1, Apache/1.3.14

2001-04-16 Thread CC Zona
ty string on the next pass). No to those too. > - Original Message - > From: "CC Zona" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Monday, April 16, 2001 5:34 PM > Subject: [PHP] fwrite not writing (simpler example), PHP 4.0.4pl1, > Apache/1.3.14

Re: [PHP] fwrite not writing (simpler example), PHP 4.0.4pl1, Apache/1.3.14

2001-04-16 Thread Chris Anderson
CTED]> Sent: Monday, April 16, 2001 5:34 PM Subject: [PHP] fwrite not writing (simpler example), PHP 4.0.4pl1, Apache/1.3.14 > Suggestions so far have focused on parts of the function other than fwrite, > so I'm trying again with a stripped-down example. After spending many > h

[PHP] fwrite not writing (simpler example), PHP 4.0.4pl1, Apache/1.3.14

2001-04-16 Thread CC Zona
Suggestions so far have focused on parts of the function other than fwrite, so I'm trying again with a stripped-down example. After spending many hours trying to make this very simple function work again, I'm beginning to think fwrite in broken--either in 4.0.4pl1 (?!) or in my build of it (it

Re: [PHP] fwrite not writing

2001-04-16 Thread Szii
om: CC Zona <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, April 16, 2001 12:06 PM Subject: Re: [PHP] fwrite not writing > In article <9bejks$gl6$[EMAIL PROTECTED]>, > [EMAIL PROTECTED] ("Plutarck") wrote: > > > I'm not sure why it suddenly

Re: [PHP] fwrite not writing

2001-04-16 Thread CC Zona
In article <9bejks$gl6$[EMAIL PROTECTED]>, [EMAIL PROTECTED] ("Plutarck") wrote: > I'm not sure why it suddenly stopped working, but let's see if you actually > need it to work. > > First of all, I take it that you have content which you want to write into a > file. Correct? > > If so, why doe

Re: [PHP] fwrite not writing

2001-04-16 Thread Plutarck
Ahhh, I see what's going on now. I had more time to read over the code, so now I see what you are trying to do. I'm not sure why it suddenly stopped working, but let's see if you actually need it to work. First of all, I take it that you have content which you want to write into a file. Correct?

Re: [PHP] fwrite not writing

2001-04-16 Thread CC Zona
> > This function suddenly stopped working, and I just can't seem to figure > out > > why. The only change made recently is that now the value of $force at > > calltime is sometimes true instead of being undefined or null. > > > > build_file("file_content","/path/to/file.inc","w",TRUE); > > > > f

Re: [PHP] fwrite not writing

2001-04-15 Thread Plutarck
What is this: !filesize($filepath) Add this above your if loop: $filesize = filesize($filepath); echo $filesize; That might be causing your loop not to execute...if not, I'm not sure what's wrong. -- Plutarck Should be working on something... ...but forgot what it was. "CC Zona" <[EMAIL P

[PHP] fwrite not writing

2001-04-15 Thread CC Zona
This function suddenly stopped working, and I just can't seem to figure out why. The only change made recently is that now the value of $force at calltime is sometimes true instead of being undefined or null. build_file("file_content","/path/to/file.inc","w",TRUE); function build_file($func