Re: using fopen() in write mode is failing



On May 30, 6:02 pm, "Rik Wasmus" <luiheidsgoe...@xxxxxxxxxxx> wrote:
What is your getcwd()? Is it what you expect / the directory 'time' should
be in?
--
Rik Wasmus
...spamrun finished

Yes, it returns the expected directory. Whenever I set the fopen to
use read mode, it gets into the if body fine.

On May 30, 9:59 pm, lawrence k <lkrub...@xxxxxxxxxxxxx> wrote:

A little off-topic, but your code is an example of the Arrow Anti-
Pattern:

http://c2.com/cgi/wiki?ArrowAntiPattern

http://www.codinghorror.com/blog/archives/000486.html

Ah, I have a bad habit of that. I just write out what I think and
eventually get around to cleaning things up again once it works :]

On May 30, 10:17 pm, lawrence k <lkrub...@xxxxxxxxxxxxx> wrote:
If you chmod $file to 0777 does your script then work?

No. All that does is add execute permissions to the file anyway.
.



Relevant Pages

  • Re: Opera 9.5 final is here...
    ... Rik Wasmus ... ...spamrun finished ... Is Opera the way to go than and I should stop using Firefox? ...
    (comp.infosystems.www.authoring.html)
  • Re: Opera 9.5 final is here...
    ... Rik Wasmus ... ...spamrun finished ... Is Opera the way to go than and I should stop using Firefox? ...
    (comp.infosystems.www.authoring.html)
  • Re: associative array order
    ... returned will ALWAYS be in the same order as when the array was ... Unless you meddle with it... ... Rik Wasmus ... ...spamrun finished ...
    (comp.lang.php)
  • Re: Cannot post to groups on news.php.net
    ... Rik Wasmus wrote: ... ...spamrun finished ... I have tried posting almost every day for a couple of weeks now. ... I won't bother trying to post to the news.php.net server anymore. ...
    (comp.lang.php)