RE: [PHP] Re: Using fopen()/fread()/fscanf()

2002-07-23 Thread Jason Soza
PROTECTED] Subject: RE: [PHP] Re: Using fopen()/fread()/fscanf() I'm thinking that you need to remove the: $contents = fread($filename, 100); line. This is probably making the file pointer point to the end of the file. -Original Message- From: Jason Soza [mailto:[EMAIL PROTECTED]] Sent

Re: [PHP] Re: Using fopen()/fread()/fscanf()

2002-07-23 Thread Jason Wong
On Tuesday 23 July 2002 14:16, Jason Soza wrote: I'm fairly certain that fopen() is working fine - I can echo $contents; and it works great, but it displays the entire page that I fetched. I just want certain parts of the page and unfortunately, fscanf() doesn't seem to think $contents or

RE: [PHP] Re: Using fopen()/fread()/fscanf()

2002-07-23 Thread Jason Soza
11:01 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Re: Using fopen()/fread()/fscanf() On Tuesday 23 July 2002 14:16, Jason Soza wrote: I'm fairly certain that fopen() is working fine - I can echo $contents; and it works great, but it displays the entire page that I fetched. I just want certain

Re: [PHP] Re: Using fopen()/fread()/fscanf()

2002-07-23 Thread Jason Wong
On Tuesday 23 July 2002 15:38, Jason Soza wrote: Alright, I see that this is probably the way to go, but I'm dying here. I have this: $filename = fopen(http://www.kinyradio.com/juneaunews/latest_juneau_news.html;, r); $contents = fread($filename, 100);

RE: [PHP] Re: Using fopen()/fread()/fscanf()

2002-07-23 Thread Jason Soza
Message- From: Jason Wong [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 23, 2002 1:20 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Re: Using fopen()/fread()/fscanf() On Tuesday 23 July 2002 15:38, Jason Soza wrote: Alright, I see that this is probably the way to go, but I'm dying here. I have

RE: [PHP] Re: Using fopen()/fread()/fscanf()

2002-07-22 Thread Jason Soza
I'm fairly certain that fopen() is working fine - I can echo $contents; and it works great, but it displays the entire page that I fetched. I just want certain parts of the page and unfortunately, fscanf() doesn't seem to think $contents or $filename are valid. Just more info on this, I tried

RE: [PHP] Re: Using fopen()/fread()/fscanf()

2002-07-22 Thread Martin Towell
PROTECTED] Subject: RE: [PHP] Re: Using fopen()/fread()/fscanf() I'm fairly certain that fopen() is working fine - I can echo $contents; and it works great, but it displays the entire page that I fetched. I just want certain parts of the page and unfortunately, fscanf() doesn't seem to think