Reply to Re: problem with some code..

Your name:

Reply:


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)

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация