[PHP] Re: grabbing information from websites

2004-09-28 Thread champinoman
> instead of the POSIX regexp, tr using PERL style RegExps > (www.php.net/pcre) Once you've done that, you can add the pattern modifier > 'm' to allow multilines . i think im lost now. i had a look at the site but im not sure what im looking at. any chance u could make a mock script up so i can

[PHP] Re: grabbing information from websites

2004-09-28 Thread champinoman
where abouts am i putting the modifier 'm' in the expression to allow the multilines? "Champinoman" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > >> instead of the POSIX regexp, tr using PERL style RegExps >> (www.php.net/pcre) Once

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 me

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 = fge

Re: [PHP] Re: grabbing information from websites

2004-09-28 Thread champinoman
i tried putting in fread() but still getting a blank screen. any other errors in here? http://hiscore.runescape.com/aff/runescape/hiscorepersonal.cgi?username=champinoman","r";); $line = fread ($file, 1024); if (preg_match('#username=champinoman&category=13.*align=&qu