[PHP] Warning: 1 is not a valid File-Handle resource - HELP!

2002-12-29 Thread Phil Powell
Ok, I am a bad coder. :( I can't figure this out at all: $fileID = fopen(nicknames.txt, 'r'); $stuff = fread($fileID, filesize(nicknames.txt)); fclose($fileID); if (strlen($stuff) 0) $priorNickNewLine = \n; $nicks = explode(\n, $stuff); The last line produces the Warning.. why?

Re: [PHP] Warning: 1 is not a valid File-Handle resource - HELP!

2002-12-29 Thread Rick Emery
[EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Sunday, December 29, 2002 3:08 AM Subject: [PHP] Warning: 1 is not a valid File-Handle resource - HELP! Ok, I am a bad coder. :( I can't figure this out at all: $fileID = fopen(nicknames.txt, 'r'); $stuff = fread($fileID

RE: [PHP] Warning: 1 is not a valid File-Handle resource

2001-04-03 Thread Jerry Lake
:[EMAIL PROTECTED]] Sent: Monday, April 02, 2001 8:35 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Warning: 1 is not a valid File-Handle resource ""WK"" [EMAIL PROTECTED] wrote in message 9abfvp$v4$[EMAIL PROTECTED]">news:9abfvp$v4$[EMAIL PROTECTED]... $fp2=fopen (&

Re: [PHP] Warning: 1 is not a valid File-Handle resource

2001-04-02 Thread Lindsay Adams
Don't know. Code looks good, what version of PHP are you using? Module or cgi? What version of windows? These are the things the PHP/Zend guys probably need to know. On 4/2/01 4:59 PM, "Richard Kurth" [EMAIL PROTECTED] wrote: What is causing this error Warning: 1 is not a valid

RE: [PHP] Warning: 1 is not a valid File-Handle resource

2001-04-02 Thread Richard Kurth
I am using the newest ver of PHP and newest ver of apache on win98 just installed new php and apache yesterday set php up as a module Don't know. Code looks good, what version of PHP are you using? Module or cgi? What version of windows? These are the things the PHP/Zend guys probably need

Re: [PHP] Warning: 1 is not a valid File-Handle resource

2001-04-02 Thread WK
$fp2=fopen ("userdata","r")or die("unable to open file ($userdata)"); $fp2 is getting a value 1 or 0 if ($fp2=fopen ("userdata","r") ) { lock file write some stuff } else { echo ("file would not open"); } wk ""Richard Kurth"" [EMAIL PROTECTED] wrote in message [EMAIL

Re: [PHP] Warning: 1 is not a valid File-Handle resource

2001-04-02 Thread WK
""WK"" [EMAIL PROTECTED] wrote in message 9abfvp$v4$[EMAIL PROTECTED]">news:9abfvp$v4$[EMAIL PROTECTED]... $fp2=fopen ("userdata","r")or die("unable to open file ($userdata)"); $fp2 is getting a value 1 or 0 if ($fp2=fopen ("userdata","r") ) { lock file write some stuff unlock file