PHP Coder Needed - Custom Sig? |
Author: |
Message: |
prashker
Veteran Member
Posts: 5109 Reputation: 104
– / / –
Joined: Mar 2005
Status: Away
|
|
05-11-2007 10:55 PM |
|
|
vikke
Senior Member
Posts: 900 Reputation: 28
31 / /
Joined: May 2006
|
RE: PHP Coder Needed - Custom Sig?
You would be able to parse the StepMania data, but not the Xbox 360 as it requires log in.
I will take a look at it tomorrow.
|
|
05-11-2007 10:58 PM |
|
|
MeEtc
Patchou's look-alike
In the Shadow Gallery once again
Posts: 2200 Reputation: 60
38 / /
Joined: Nov 2004
Status: Away
|
RE: PHP Coder Needed - Custom Sig?
yup, as per MSN
I cannot hear you. There is a banana in my ear.
|
|
05-11-2007 11:00 PM |
|
|
prashker
Veteran Member
Posts: 5109 Reputation: 104
– / / –
Joined: Mar 2005
Status: Away
|
|
05-11-2007 11:02 PM |
|
|
Lou
Veteran Member
Posts: 2475 Reputation: 43
– / /
Joined: Aug 2004
|
RE: PHP Coder Needed - Custom Sig?
Working on it: http://www.dotlou.com/stuff/sam_sig/
Edit: This is loads harder than I thought. I'm still working on it though.
Edit2: I'm currently connected to like 3 php irc channels, but everybody seems to be avoiding to help people whose questions involve any kind of thinking, so this could be a while.
The link above currently only outputs the first image
This post was edited on 05-12-2007 at 01:07 AM by Lou.
The future holds bright things in it\\\'s path, but only time will tell what they are and where they come from.
Messenger Stuff Forums
|
|
05-11-2007 11:06 PM |
|
|
prashker
Veteran Member
Posts: 5109 Reputation: 104
– / / –
Joined: Mar 2005
Status: Away
|
O.P. RE: PHP Coder Needed - Custom Sig?
Well dotLou, there is still MeEtc and vikke who can use powers ;o.
lets see what they got .
|
|
05-12-2007 03:52 AM |
|
|
vikke
Senior Member
Posts: 900 Reputation: 28
31 / /
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.
|
|
05-12-2007 08:51 AM |
|
|
hmaster
Senior Member
Posts: 716 Reputation: 24
33 / /
Joined: Nov 2004
|
RE: PHP Coder Needed - Custom Sig?
quote: Originally posted by vikke
code: getURL(”http://stepmaniaonline.com/index.php?mod=Stepmania+Online&player=sonicsamz”);
should be
code: getHTML(”http://stepmaniaonline.com/index.php?mod=Stepmania+Online&player=sonicsamz”);
|
|
05-12-2007 10:54 AM |
|
|
vikke
Senior Member
Posts: 900 Reputation: 28
31 / /
Joined: May 2006
|
RE: RE: PHP Coder Needed - Custom Sig?
quote: Originally posted by hmaster
quote: Originally posted by vikke
code: getURL(”http://stepmaniaonline.com/index.php?mod=Stepmania+Online&player=sonicsamz”);
should be
code: getHTML(”http://stepmaniaonline.com/index.php?mod=Stepmania+Online&player=sonicsamz”);
Yeah. I wrote that very fast.
Thanks.
|
|
05-12-2007 10:56 AM |
|
|
hmaster
Senior Member
Posts: 716 Reputation: 24
33 / /
Joined: Nov 2004
|
RE: PHP Coder Needed - Custom Sig?
quote: Originally posted by vikke
Yeah. I wrote that very fast.
Thanks.
code: curl_close($curlHandle);
should be
code: curl_close($curl);
|
|
05-12-2007 11:27 AM |
|
|
Pages: (2):
« First
[ 1 ]
2
»
Last »
|
|