Re: [PHP] Problem with the fwrite function (not as simple as it sounds though)

2005-11-20 Thread Łukasz Hejnak
Hello again, here's some more extra info on my case that came out while Suhas Pharkute was helping me find a resolution: So the safe-mode is off, that's for sure, I turned it off at compile stage. I delete the file after each run of the script, the folder where the script is located has 777

Re: [PHP] Problem with the fwrite function (not as simple as it sounds though)

2005-11-20 Thread Brian V Bonini
On Sun, 2005-11-20 at 05:44, Łukasz Hejnak wrote: Hello again, here's some more extra info on my case that came out while Suhas Pharkute was helping me find a resolution: So the safe-mode is off, that's for sure, I turned it off at compile stage. I delete the file after each run of the

Re: [PHP] Problem with the fwrite function (not as simple as it sounds though)

2005-11-20 Thread Łukasz Hejnak
Brian V Bonini napisał(a): You are saying: From the CLI you can write to a file all day long, no prob. Yes, the shell command php test.php works fine when executed as root (any other user has the same problem as from the web) From the web, if the file does not exist it is created, however, no

Re: [PHP] Problem with the fwrite function (not as simple as it sounds though)

2005-11-20 Thread Curt Zirzow
On Sun, Nov 20, 2005 at 03:38:56PM +0100, ukasz Hejnak wrote: Brian V Bonini napisa�(a): You are saying: From the CLI you can write to a file all day long, no prob. Yes, the shell command php test.php works fine when executed as root (any other user has the same problem as from the web) From

Re: [PHP] Problem with the fwrite function (not as simple as it sounds though)

2005-11-20 Thread Suhas
This is not a disk usage as it works when script is run from terminal as su\ Suhas On 11/20/05, Curt Zirzow [EMAIL PROTECTED] wrote: On Sun, Nov 20, 2005 at 03:38:56PM +0100, ukasz Hejnak wrote: Brian V Bonini napisa�(a): You are saying: From the CLI you can write to a file all day long,

Re: [PHP] Problem with the fwrite function (not as simple as it sounds though)

2005-11-20 Thread Curt Zirzow
On Sun, Nov 20, 2005 at 09:26:15AM -0700, Suhas wrote: This is not a disk usage as it works when script is run from terminal as su\ root can break the 100% barrier, it usually can get around 110%. [EMAIL PROTECTED]:/tmp df -h /tmp Filesystem SizeUsed Avail Capacity Mounted on

Re: [PHP] Problem with the fwrite function (not as simple as it sounds though)

2005-11-20 Thread Suhas
thanks, never thought about that. Suhas On 11/20/05, Curt Zirzow [EMAIL PROTECTED] wrote: On Sun, Nov 20, 2005 at 09:26:15AM -0700, Suhas wrote: This is not a disk usage as it works when script is run from terminal as su\ root can break the 100% barrier, it usually can get around 110%.

Re: [PHP] Problem with the fwrite function (not as simple as it sounds though)

2005-11-20 Thread Brian V Bonini
On Sun, 2005-11-20 at 09:38, Łukasz Hejnak wrote: Brian V Bonini napisał(a): You are saying: From the CLI you can write to a file all day long, no prob. Yes, the shell command php test.php works fine when executed as root (any other user has the same problem as from the web) From the web,

Re: [PHP] Problem with the fwrite function (not as simple as it sounds though)

2005-11-20 Thread Łukasz Hejnak
Brian V Bonini napisał(a): What does 'df -h' say on your system? !!! The simplest of all is the most unforseen.. Wow. that's it ;) I NEVER EVEN Imagined to check for that, in fact that _IS_ the thing. I feel so totaly stupid right now, I checked everything except this, although I think the

[PHP] Problem with the fwrite function (not as simple as it sounds though)

2005-11-19 Thread Łukasz Hejnak
Hello, First of all sorry for my english, trying my best :] The story is: I'm running a small webserver and to monitor the amount of people going trough my pages, I've made a simple counter (storing the data in a text file), no matter the details, the important thing is that it WORKED just

Re: [PHP] Problem with the fwrite function (not as simple as it sounds though)

2005-11-19 Thread Łukasz Hejnak
Hello again, some extra info on my case: the fwrite is completely fine, when fopen is in 'a' mode! Thus leading to a temporary workaround like this: $file = /wwwroot/file $countt = explode(., fread(fopen($file,r), filesize($file))); $count=$countt[1]; $count++; $handle=fopen($file,a);