You are here: Re: [PHP] Problem with the fwrite function (not as simple as it sounds though) « PHP « IT news, forums, messages
Re: [PHP] Problem with the fwrite function (not as simple as it sounds though)

Posted by £ukasz Hejnak on 10/05/36 11:32

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
> content is appended to it. Furthermore, IF there is content in the file
> it can be appended to via web, but if it's an empty file it will not get
> written too. Am I following correctly?

Exactly, as strange as it sounds, it's just like it is.

And another thing, the whole instalation was working perfectly for the
past month or two, and now (friday->saturday) suddenly the above symptom
have appeared.
No config changes, no updates or anything else I could relate was
happening on the server, and there is no info in the log files on this
behaviour, the is_writable says it is writable. The safe mode is disabled.

Hope this tells You something, and gives You an idea on how to solve this.

--
Best wishes
Łukasz Hejnak

 

Navigation:

[Reply to this message]


УдалСнная Ρ€Π°Π±ΠΎΡ‚Π° для программистов  •  Как Π·Π°Ρ€Π°Π±ΠΎΡ‚Π°Ρ‚ΡŒ Π½Π° Google AdSense  •  England, UK  •  ΡΡ‚Π°Ρ‚ΡŒΠΈ Π½Π° английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация