Re: using fopen() in write mode is failing
- From: cscorley@xxxxxxxxx
- Date: Fri, 30 May 2008 21:52:07 -0700 (PDT)
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.
.
- References:
- using fopen() in write mode is failing
- From: cscorley
- Re: using fopen() in write mode is failing
- From: lawrence k
- using fopen() in write mode is failing
- Prev by Date: Re: using fopen() in write mode is failing
- Next by Date: Re: Big leap - using web services
- Previous by thread: Re: using fopen() in write mode is failing
- Next by thread: Re: using fopen() in write mode is failing
- Index(es):
Relevant Pages
|