|
Posted by Dave on 06/04/05 06:03
Craft (crafted@gmail.com) decided we needed to hear...
> how would i count my friend help me code this but his pc just crashed
> so he hasnt been online.. like iuno wtf
>
> $serverpop = strtolower(substr(substr($html, -(strlen($html) -
> ($pos + $length + 256))), 0, 3));
>
> is.. so uh can u help?
Well, if you still really want to do it the way you're doing it in the
script, the following *might* work (but untested)...
1) Grab the HTML file yourself (view in a browser, do a view source,
then copy/paste into an editor).
2) Count the number of chars from the end of the server name to the
start of the server pop (including newlines)
3) Replace the 256 with the value you got in 2.
If you're serious about making the script work, regardless of changes
to the HTML, you'd be better off investigating HTML parsing routines,
can't think of any off-hand but someone else might give you some
pointers.
--
Dave <dave@REMOVEbundook.com>
(Remove REMOVE for email address)
Navigation:
[Reply to this message]
|