Re: [PHP] fgets fails after fopen succeeds

2005-05-10 Thread Richard Lynch
On Tue, May 10, 2005 7:42 pm, Thomas Powell said: > Printing $fh printed a 1. > > My original file mode was just "r", I changed to "r+" to see if I'd get > permissions problems. The file handle seems to be fine. fgets just doesn't > like it. > > This is an adaptation of the following code, which wo

Re: [PHP] fgets fails after fopen succeeds

2005-05-10 Thread Richard Lynch
On Tue, May 10, 2005 1:34 pm, Thomas Powell said: > Summary: > fopen returns a file handle, yet fgets doesn't want to read it. I've > scoured > google, php.net , phpfreaks, usenet, etc. It seems to work > elsewhere. > > My setup: > Apache 2.0.47 > PHP/5.0.4 > Windows 2000 > > The ca

Re: [PHP] fgets fails after fopen succeeds

2005-05-10 Thread Thomas Powell
Printing $fh printed a 1. My original file mode was just "r", I changed to "r+" to see if I'd get permissions problems. The file handle seems to be fine. fgets just doesn't like it. The 0 && !feof() was a "commenting out" of the for loop to prevent the fgets from running so that I so print the