What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » PHP Coder Needed - Custom Sig?

PHP Coder Needed - Custom Sig?
Author: Message:
vikke
Senior Member
****

Avatar

Posts: 900
Reputation: 28
31 / Male / Flag
Joined: May 2006
RE: PHP Coder Needed - Custom Sig?
For Stepmania Online, you can just use the cURL library for PHP. And then do like this:
code:
<?
function getHTML($url) {
   $curl = curl_init();
   
   curl_setopt($curl, CURLOPT_URL, $url);
   curl_setopt($curl, CURLOPT_HEADER, 0);
   curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
   curl_setopt($curl, CURLOPT_TIMEOUT,120);
   $HTML = curl_exec($curl);
   curl_close($curlHandle);
   return $HTML;
  }
$HTML = getHTML(”http://stepmaniaonline.com/index.php?mod=Stepmania+Online&player=sonicsamz”);
// Parse the HTML here.
?>

To get rank, search for "<FONT SIZE=+2><B>Rank " and then read until "</B>" appears.
To get last game name search for "<I><FONT SIZE=+3>" and read until "</FONT>".

Edit: Fixed code.

This post was edited on 05-12-2007 at 10:56 AM by vikke.
4 8 15 16 23 42
05-12-2007 08:51 AM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
PHP Coder Needed - Custom Sig? - by prashker on 05-11-2007 at 10:55 PM
RE: PHP Coder Needed - Custom Sig? - by vikke on 05-11-2007 at 10:58 PM
RE: PHP Coder Needed - Custom Sig? - by MeEtc on 05-11-2007 at 11:00 PM
RE: PHP Coder Needed - Custom Sig? - by prashker on 05-11-2007 at 11:02 PM
RE: PHP Coder Needed - Custom Sig? - by Lou on 05-11-2007 at 11:06 PM
RE: PHP Coder Needed - Custom Sig? - by prashker on 05-12-2007 at 03:52 AM
RE: PHP Coder Needed - Custom Sig? - by vikke on 05-12-2007 at 08:51 AM
RE: PHP Coder Needed - Custom Sig? - by hmaster on 05-12-2007 at 10:54 AM
RE: RE: PHP Coder Needed - Custom Sig? - by vikke on 05-12-2007 at 10:56 AM
RE: PHP Coder Needed - Custom Sig? - by hmaster on 05-12-2007 at 11:27 AM
RE: PHP Coder Needed - Custom Sig? - by John Anderton on 05-12-2007 at 01:19 PM
RE: PHP Coder Needed - Custom Sig? - by prashker on 05-12-2007 at 03:53 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On