Many people tried to help me. The code looks like this
Link to css file Hotfile.com: One click file hosting: states.css
Put it in the same directory.
So run the script from your computer (localhost) and you will see :
I was trying to get the table via substr but i couldnt make it
Can someone try to get the data from it into a new table? That would be with no bg just a simple table.
Also i wanted to ask how can i get multiple CURLS since i wanna get the tables for each tab that is on the left side of the image
So it would be like index.php -> Choose a statistic
index.php?page=Hero <- will get an CURL of heros etc
I would be really appreciated!!
PM me for details
PHP:
<link type="text/css" rel="stylesheet" href="states.css">
<?php
$cookie_file = "cookie.txt";
$headers = array('Accept-Language: pl,en-us;q=0.7,en;q=0.3',
'Accept-Charset: ISO-8859-2,utf-8;q=0.7,*;q=0.7');
$ch = curl_init('http://www.empcraft.pl/auth/login');
curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 5.1; pl; rv:1.8.1.12) Gecko/20080201 Firefox/2.0.0.12;MEGAUPLOAD 1.0");
curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie_file);
curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie_file);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, 'login=ailvenge&password=ailvenge');
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
$s = curl_exec($ch);
curl_close($ch);
$ch = curl_init("http://s1.empcraft.pl/executeStat.do?operation=statHero");
curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie_file);
curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie_file);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
$result = curl_exec($ch);
curl_close($ch);
die($result);
?>
Link to css file Hotfile.com: One click file hosting: states.css
Put it in the same directory.
So run the script from your computer (localhost) and you will see :
I was trying to get the table via substr but i couldnt make it
Can someone try to get the data from it into a new table? That would be with no bg just a simple table.
Also i wanted to ask how can i get multiple CURLS since i wanna get the tables for each tab that is on the left side of the image
So it would be like index.php -> Choose a statistic
index.php?page=Hero <- will get an CURL of heros etc
I would be really appreciated!!
PM me for details