RE: [PHP] Re: grabbing information from websites

2004-09-29 Thread Graham Cossey
aham -Original Message- From: champinoman [mailto:[EMAIL PROTECTED] Sent: 29 September 2004 02:04 To: [EMAIL PROTECTED] Subject: Re: [PHP] Re: grabbing information from websites i tried putting in fread() but still getting a blank screen. any other errors in here? http://hiscore.runescape.c

Re: [PHP] Re: grabbing information from websites

2004-09-28 Thread champinoman
aham > > -----Original Message- > From: champinoman [mailto:[EMAIL PROTECTED] > Sent: 28 September 2004 14:47 > To: [EMAIL PROTECTED] > Subject: Re: [PHP] Re: grabbing information from websites > > > i said i was learning this and didnt really understand it. > so going by

Re: [PHP] Re: grabbing information from websites

2004-09-28 Thread Eduardo Sampaio
e parsing. I bet it's > what you see above. > > -TG > > > > > -Original Message- > > From: champinoman [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, September 28, 2004 9:47 AM > > To: [EMAIL PROTECTED] > > Subject: Re: [PHP] Re: grabbing i

RE: [PHP] Re: grabbing information from websites

2004-09-28 Thread Gryffyn, Trevor
ED] > Sent: Tuesday, September 28, 2004 9:47 AM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] Re: grabbing information from websites > > > i said i was learning this and didnt really understand it. > so going by what has been said i have come up with the > fol

RE: [PHP] Re: grabbing information from websites

2004-09-28 Thread Graham Cossey
nstead. HTH Graham -Original Message- From: champinoman [mailto:[EMAIL PROTECTED] Sent: 28 September 2004 14:47 To: [EMAIL PROTECTED] Subject: Re: [PHP] Re: grabbing information from websites i said i was learning this and didnt really understand it. so going by what has been said i have come u

Re: [PHP] Re: grabbing information from websites

2004-09-28 Thread champinoman
i said i was learning this and didnt really understand it. so going by what has been said i have come up with the following but still doesnt want to work. heres what i have: http://hiscore.runescape.com/aff/runescape/hiscorepersonal.cgi?username=champinoman","r";); $line = fgets ($file, 1024)

Re: [PHP] Re: grabbing information from websites

2004-09-28 Thread M. Sokolewicz
ugh, obviously I'm a bad typer :) The code should be: preg_match('#username=champinoman&category=13.*align="right">(.*)#mi', $text, $out); Or using any other patterndelimiter... ;) M. Sokolewicz wrote: I thought I clearly stated that for the m modifier you need to use PCRE functions! eg: preg_m

Re: [PHP] Re: grabbing information from websites

2004-09-28 Thread M. Sokolewicz
I thought I clearly stated that for the m modifier you need to use PCRE functions! eg: preg_match('/username=champinoman&category=13.*align="right">(.*)/mi', $text, $out); Champinoman wrote: so does this look right: eregi ("username=champinoman&category=13.*align=\"right\">(.*)"m,$line,$out))

Re: [PHP] Re: grabbing information from websites

2004-09-28 Thread champinoman
so does this look right: eregi ("username=champinoman&category=13.*align=\"right\">(.*)"m,$line,$out)) is that where i am ment to put the 'm' modifier? or am i still off on the wrong track? "Graham Cossey" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > From http://gnosis.cx/

RE: [PHP] Re: grabbing information from websites

2004-09-28 Thread Graham Cossey
>From http://gnosis.cx/publish/programming/regular_expressions.html: "Sometimes you have a programming problem and it seems like the best solution is to use regular expressions; now you have two problems." To me regular expressions are some kind of black art, I've been programming for 20 years an