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

2002-07-23 Thread Jason Soza
za -Original 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&

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); > preg_

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

2002-07-23 Thread Jason Soza
Thanks! Jason Soza -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 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(

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

2002-07-22 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 o

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

2002-07-22 Thread Jason Soza
st what I intend for it to do, is grab everything between mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 10:16 PM To: 'Jason Soza'; David Robley; [EMAIL PROTECTED] Subject: RE: [PHP] Re: Using fopen()/fread()/fscanf() I'm thinking that you need to remove the: $contents = fread($

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

2002-07-22 Thread Martin Towell
EMAIL 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() d

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

2002-07-22 Thread Jason Soza
nfo on this, I tried replacing fscanf($filename,...) with fscanf($contents,...) and got the same result. Thanks, Jason Soza -Original Message- From: David Robley [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 8:37 PM To: [EMAIL PROTECTED] Subject: [PHP] Re: Using fopen()/fread()/f

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

2002-07-22 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > I think I'm pretty close to getting this right (maybe!), I've been reading > through the manual, but can't seem to work it out. I keep getting this > error: > > [Mon Jul 22 19:03:24 2002] [error] PHP Warning: Supplied argument is not a