FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » fopen error
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
fopen error [message #175227] Sun, 28 August 2011 00:56 Go to previous message
eBob.com is currently offline  eBob.com
Messages: 11
Registered: August 2011
Karma:
Junior Member
This fopen fails and I don't understand why ...

$fpFileOut = fopen($fileout,"c");
if (!$fpFileOut) {echo "Error opening $fileout\n"; echo E-WARNING; exit;}

The file does not exist but shouldn't "c" create it? My understand of "c"
is that it's created if it doesn't exist and overwrites the file if it does
exist. (That's not exactly what the doc says but that is the way I
understand it.)

My attemp to echo E-WARNING produces "0". I have no idea what's up with
that.

Probably a dumb noob error as I am a dumb noob.

Thanks, Bob
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: mktime 2-digit vs 4-digit year
Next Topic: OpenSSL, openssl_pkey_get_private
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Nov 22 20:23:29 GMT 2024

Total time taken to generate the page: 0.07213 seconds