With EA set to release FIFA 13 in a weeks time I thought I’d update my code for accessing the Ultimate Team webapp for the new game. The first thing I discovered is that the process is very similar to last time, the second thing was that they used the same code to hash the secret answer as last time. This leads me to believe that their MD5 mixup was intentional and thats the way they hash things.
The class below will retrieve the values required to search for items using the webapp:
< ?PHP /** * @llygoden * @author - Rob McGhee * @URL - www.robmcghee.com * @date - 12/06/12 * @version - 2.0 **/ class Connector { private $user; private $password; private $hash; //initialise the class public function __construct($user, $password, $hash) { $this->user = $user; $this->password = $password; $this->hash = $hash; } public function connect(){ //EA Web App Username & Password //$user = "test@ea.com"; //$password = "eaPassword"; //Secret Question Hash Value //$hash = "d2d59e74d02d877ef6ae94bf868c18e0"; //locale for urls $ulocal = "en_GB"; //displayname for auth string $dispname = "bot"; //locale for auth string $locale = "en-GB"; //Time now in milliseconds $time = time(); //The first 2 EA URLs we need to call in this order $login = "https://www.ea.com/uk/football/services/authenticate/login"; $shard = "http://www.ea.com/p/fut/a/card/l/". $ulocal ."/s/p/ut/shards?timestamp=". $time; //POST data to send $data_string = "email=".$this->user."&password=".$this->password; //Setup cURL HTTP request $ch = curl_init($login); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST"); curl_setopt($ch, CURLOPT_POSTFIELDS, $data_string); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_HEADER, true); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/x-www-form-urlencoded', 'Content-Length: ' . strlen($data_string)) ); $response = curl_exec($ch); curl_close($ch); //Split the HEADERS and BODY list($h, $EALOGIN) = explode("\r\n\r\n", $response, 2); $r = explode("\r\n", $h); //EASW Key $s = explode(":", $r[7]); $t = explode(";", $s[1]); $EASW_KEY = $t[0]; //Session Key $m = explode(":", $r[8]); $n = explode(";", $m[1]); $EASF_SESS = $n[0]; //nuc $a = explode("", $EALOGIN); $b = explode("", $a[1]); $NUC = $b[0]; //display the keys that we've found //echo $EASW_KEY. " "; //echo $EASF_SESS. " "; //echo "NUC: ".$NUC." "; //unset the variables used in this section as we will use them again unset($EALOGIN, $ch, $r, $s, $t, $m, $n, $a, $b, $data_string, $response); //Cookie Data includes the two keys from above $cookie_string = $EASW_KEY."; ".$EASF_SESS; //Setup cURL HTTP request $ch = curl_init($shard); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_HEADER, false); curl_setopt($ch, CURLOPT_COOKIE, $cookie_string); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/x-www-form-urlencoded') ); $EAACCOUNT = curl_exec($ch); curl_close($ch); //Get machine type $d = json_decode($EAACCOUNT); $machine = $d->shardInfo[0]->customdata1[0]; //display the variables we've got //echo "machine: ".$machine." "; unset($EAACCOUNT, $d, $ch, $cookie_string); //Having gotten the data from the SHARD URL here are the 3 remaining EA URLs we will use $account= "http://www.ea.com/p/fut/a/" . $machine . "/l/". $ulocal ."/s/p/ut/game/fifa13/user/accountinfo?timestamp=". $time; $auth = "http://www.ea.com/p/fut/a/" . $machine . "/l/". $ulocal ."/s/p/ut/auth"; $quest = "http://www.ea.com/p/fut/a/" . $machine . "/l/". $ulocal ."/s/p/ut/game/fifa13/phishing/validate"; //Cookie Data includes the two keys from above $cookie_string = $EASW_KEY."; ".$EASF_SESS; //Setup cURL HTTP request $ch = curl_init($account); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_HEADER, false); curl_setopt($ch, CURLOPT_COOKIE, $cookie_string); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/x-www-form-urlencoded') ); $EAACCOUNT = curl_exec($ch); curl_close($ch); //Get personaID and Platform $d = json_decode($EAACCOUNT); $personaID = $d->userAccountInfo->personas[0]->personaId; $platform = $d->userAccountInfo->personas[0]->userClubList[0]->platform; //display the variables we've got //echo "personaId: ".$personaID." "; //echo "platform: " .$platform. " "; //unset the variables used in this section as we will use them again unset($EAACCOUNT, $d, $ch, $cookie_string); //Cookie Data includes the two keys from above $cookie_string = $EASW_KEY."; ".$EASF_SESS; //JSON data to send as a POST item $data = array("isReadOnly" => false, "sku" => "393A0001", "clientVersion" => 3, "nuc" => $NUC, "nucleusPersonaId" => $personaID, "nucleusPersonaDisplayName" => $dispname, "nucleusPersonaPlatform" => $platform, "locale" => $locale, "method" => "idm", "priorityLevel" => 4, "identification" => array( "EASW-Token" => "" )); $data_string = json_encode($data); //Setup cURL HTTP request $ch = curl_init($auth); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST"); curl_setopt($ch, CURLOPT_POSTFIELDS, $data_string); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_COOKIE, $cookie_string); curl_setopt($ch, CURLOPT_HEADER, true); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json', 'Content-Length: ' . strlen($data_string)) ); $EAAUTH = curl_exec($ch); curl_close($ch); //Split the returned HEADERs into an Array $r = explode("\r\n", $EAAUTH); //User Session ID $XSID = $r[3]; //Display the User Session ID //echo $XSID. " "; //unset the variables used in this section as we will use them again unset($EAAUTH, $ch, $cookie_string, $data, $data_string, $r, $NUC, $personaID, $platform, $dispname, $locale); //Cookie Data includes the two keys from above $cookie_string = $EASW_KEY."; ".$EASF_SESS; //POST data to send $data_string = "answer=".$this->hash; //Setup cURL HTTP request $ch = curl_init($quest); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST"); curl_setopt($ch, CURLOPT_POSTFIELDS, $data_string); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_COOKIE, $cookie_string); curl_setopt($ch, CURLOPT_HEADER, true); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/x-www-form-urlencoded', 'Content-Length: ' . strlen($data_string), $XSID) ); $EAVALIDATE = curl_exec($ch); curl_close($ch); //Split the returned HEADERs into an Array $r = explode("\r\n", $EAVALIDATE); //Phishing Key $s = explode(":", $r[6]); $t = explode(";", $s[1]); $PHISHKEY = $t[0]; //Display the Phishing Key //echo $PHISHKEY. " "; unset($EAVALIDATE, $ch, $cookie_string, $data_string, $r, $s, $t); //Build the array of items to return $returnitems = array('EASW_KEY' => $EASW_KEY, 'EASF_SESS' => $EASF_SESS, 'XSID' => $XSID, 'PHISHKEY' => $PHISHKEY); //Return the array return $returnitems; } } ?>
[…] Published Sign in to FIFA 13 Ultimate Team using PHP. […]
hey I was executing your code on a SWAMP serven when an error came up saying:
unexpected “;
on line 79
I was hoping if you could help me with this
It seems that when posting code some of the commented lines have gone onto two lines.
The correct code can be found on my GitHub page:
https://github.com/mousey/
With this exact code being here:
https://github.com/mousey/FIFA13-Ultimate-Team-Search/blob/master/code/connector.php
Hi.
Great script, but I have some issues:
I’m getting a lot of offset errors.
Maybe its possible to solve them, because disable the error-management in php.ini is not the best way.
How can I find out, that the script works?
E.g. the machine-echo shows me 360, but I use my account with ps3.
Is there a small code example which use the login and show the credits afterwards, just to see, that it works?
Thanks in advance.
Hmm have you ever had an ultimate team on a 360? The script just picks the first machine it finds, so that could be the reason for that.
An example script that I used for testing is below, it connects to the Web App and searches for Fulham strikers from Bulgaria (Berbatov). You obviously need to input your own Username, Password and Hash:
I compared the EAACCOUNT with the one if I login manual.
Its the same, but you use $d->shardInfo[0]->customdata1[0];
I need $d->shardInfo[1]->customdata1[1]; which stands for ps3.
But nevertheless the login does not work.
About your example:
It a little bit irritating for me.
Normally I expect the following:
Create a Connector-Object and use the connect function
and then use the searchor-class and go on.
Whats wrong in my thinking?
There is nothing wrong with your thinking.
You wanted an example of my code working, I’ve not coded anything yet using the classes method. So I copied and pasted my testing script that is a top down file but the code for each section is the same, just not called using a function.
Ok.
I also solved my problem.
I changed the https to http and so it works.
Maybe I have some configuration issues?
Hi Rob,
Firstly, thanks for this great work – just the start I needed!
I was wondering if there is any way to search for a specific player (by ID or something maybe) – rather than have to specify Club, Country, Position etc. and hope there are not two players where these all match?
Nice one man 🙂
Indeed this is nice but once again i have to edit the $d->shardInfo[0]->customdata1[0] to [1] and [0]. For me it displayed the 360 however im a PC user but this fixed it.
Also, i cant seem to get the auth to work properly, has it changed since you posted the code? It seems to get all the correct info but when i try search anything it always says the session is expired. And when i tried your sample code above i get:
Warning: file_get_contents(https://utas.fut.ea.com/ut/game/fifa13/auctionhouse?leag=13&team=144&num=16&zone=attacker&nat=9&lev=gold&type=player&start=0) [function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.1 401 Unauthorized in /myfiles line etc 🙂
Which im guessing is the same unauthorized/expired session. Even when i grab the info from logging into the web app and set the vars manually it still has the same errors
Hello I was just wondering af anyone can help me run this code an put the other together thanks.
Hello,
I’m been searching for something like this for a while and it’s great that you’ve done all this work! it’s greatly appreciated!
Im pretty new to PHP and only used it for basic forms, I’m fairly good at programming so I understand the logic behind the scripting quite well.
However, I’m having an issue creating a basic test page to display results. My plan was to do this and then build on it to develop what I want to achieve in the long run.
I copied and pasted your example test above and inputted my credentials, also used the “eahashor” script to get my hashed secret answer. When I upload the page, it just presents me with a blank page.
Can you help and tell me if theres somehing obviously wrong that I’m doing
Thanks
I appreciate your probably thinking I shouldn’t be trying to do this if I’m only starting out but just to get me started i’d appreciate it!
When trying to connect to http://www.lavish-beauty.co.uk/fifa/test.php
which is a direct copy apart from credentials it comes back with cannot display and a HTTP 500 Internal Server error
Thank
P.S … Ignore the domain! lol
I found the issue I think! in your example the URL’s seem to be incorrect
$login = “https://www.ea.com/uk/football/services/authenticate/login";
needed to be
$login = “https://www.ea.com/uk/football/services/authenticate/login/”;
for me to get it to work.
Same with all the others too … weird :-/
Hi Robert,
First of all, thanks a lot for you script! I got the connection working, but the problem i got is now with the searcher, I can’t get the json results for some reason. I am very expierence with Oracle (PL/SQL) and C#. But php is new to me, but i am trying hard. Can you tell me please why the following code is not working?
connect();
$search = new Searchor($connArray['EASW_KEY'], $connArray['EASW_KEY'], $connArray['PHISHKEY'], $connArray['XSID']);
$searchjson = $search ->playersearch(0, 12, 'gold', null, 'CB', 54, 13, 5, null, null , null, 9000);
echo json_decode($searchjson);
?>
he didn’t print it good, i try again sorry:
connect();
// print array connection
// print_r($connArray);
$search = new Searchor($connArray[‘EASW_KEY’], $connArray[‘EASW_KEY’], $connArray[‘PHISHKEY’], $connArray[‘XSID’]);
$searchjson = $search ->playersearch(0, 12, ‘gold’, null, ‘CB’, 54, 13, 5, null, null , null, 9000);
echo json_decode($searchjson);
?>
Unfortunately still not my full code 🙁 can you please tell me how you embed code in your reply section? Or could you send me a mail on kevin_vermaat@hotmail.com.
It would really be awesome, I can’t tell you how much I appreciate the work you did on the connector code.
One last try, sorry for the spam, you can delete my first 2 messages, I try to copy code in this reply section ^^.
Could you please explain what I do wrong, sorry me new to PHP.
Greetz from holland
Hi Rob,
I’ve been looking into this code for a while now, but I can’t figure out how to succesfully use this code. Can I use this code locally on my computer or do I need to run this from a server? You will do me a great favour to slightly help me running this code.
Thanks in advance,
John
Where i have to put this code?
Do you have any working examples of calling the classes? it’s driving me insane!
I call the connector class and it seems fine, as soon as I attempt a search I get an Internal 500 error 🙁
Regards
I’m using a C# version of you code and trying to connect. Login is successful but the response returned is:
1
12345678
1234512345
myemail@gmail.com
87654321
gamertaghere
cem_ea_id
Nowehere do I see SE_KEY or SESS_KE. Am I skipping something?
Good job! How’d you figure out the resource > base id part?
i got error message in my browser , what is wrong ?
Your Hash: 4ecf384196c8149587564j56f38h875r18b9378f
Notice: Undefined offset: 1 in C:\xampp\htdocs\code\connector.php on line 58
Notice: Undefined offset: 7 in C:\xampp\htdocs\code\connector.php on line 62
Notice: Undefined offset: 1 in C:\xampp\htdocs\code\connector.php on line 63
Notice: Undefined offset: 8 in C:\xampp\htdocs\code\connector.php on line 66
Notice: Undefined offset: 1 in C:\xampp\htdocs\code\connector.php on line 67
Notice: Undefined offset: 1 in C:\xampp\htdocs\code\connector.php on line 71
Notice: Trying to get property of non-object in C:\xampp\htdocs\code\connector.php on line 98
Notice: Trying to get property of non-object in C:\xampp\htdocs\code\connector.php on line 98
Notice: Trying to get property of non-object in C:\xampp\htdocs\code\connector.php on line 127
Notice: Trying to get property of non-object in C:\xampp\htdocs\code\connector.php on line 127
Notice: Trying to get property of non-object in C:\xampp\htdocs\code\connector.php on line 127
Notice: Trying to get property of non-object in C:\xampp\htdocs\code\connector.php on line 128
Notice: Trying to get property of non-object in C:\xampp\htdocs\code\connector.php on line 128
Notice: Trying to get property of non-object in C:\xampp\htdocs\code\connector.php on line 128
Notice: Trying to get property of non-object in C:\xampp\htdocs\code\connector.php on line 128
Your Connection Details:
Accept-Encoding
Cache-Control: private
A Single Search Result:
bool(false)
Hi,
I found an issue for people who can’t connect trough this script. It’s seems to be a problem with SSL so you have to put this :
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, TRUE);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
curl_setopt($ch, CURLOPT_CAINFO, getcwd() . “\cacert.pem”);
for any request with HTTPS (download cacert.pem here http://curl.haxx.se/ca/cacert.pem and put it in your folder).
But I have another problem, i’m connected, but when I try to do search, I get an expired session error with code 404,any issue ?
(Sorry for my bad english)
Regards.
Error 401 sorry.
Hi Rob,
your connection code was working fine until this morning, but now the accountInfo request, returns an empty string.
I figured out that EA maybe has changed something in the login response, so now the login request parser at line 61 of your code should be modified:
original code
//EASW Key
$s = explode(“:”, $r[7]);
new code
//EASW Key
$s = explode(“:”, $r[6]);
By and thanx for your code
ps: sorry for my english 😉
Hello,
first thing I want to say is, that your work is just awesome.
I’m totally new to php, but I’m trying to develeop a full application piece by piece.
I’ve got much experience in programming with java, so I tought I can give it a try.
Tested your connection script just now, but I get alot of issues.
-Many undefined offsets from line 58 – 71
-Trying to get property of non-object; line 127-128
-Undefined offset in line 192-193.
the variables (personalid, platform, NUC) are all empty, unless machine, that has the value: card-pc.
Is that code really still working and did I something wrong, or is there a need to update the code??
Would be very nice, if someone cam report something.
hi guys,
i have the same problem as polik :(, what i should to do?
Your Hash: 37a605f2f43ef52800a7fe76619924bc
Notice: Undefined offset: 1 in C:\xampp\htdocs\connector.php on line 58
Notice: Undefined offset: 7 in C:\xampp\htdocs\connector.php on line 62
Notice: Undefined offset: 1 in C:\xampp\htdocs\connector.php on line 63
Notice: Undefined offset: 8 in C:\xampp\htdocs\connector.php on line 66
Notice: Undefined offset: 1 in C:\xampp\htdocs\connector.php on line 67
Notice: Undefined offset: 1 in C:\xampp\htdocs\connector.php on line 71
Notice: Trying to get property of non-object in C:\xampp\htdocs\connector.php on line 127
Notice: Trying to get property of non-object in C:\xampp\htdocs\connector.php on line 127
Notice: Trying to get property of non-object in C:\xampp\htdocs\connector.php on line 127
Notice: Trying to get property of non-object in C:\xampp\htdocs\connector.php on line 128
Notice: Trying to get property of non-object in C:\xampp\htdocs\connector.php on line 128
Notice: Trying to get property of non-object in C:\xampp\htdocs\connector.php on line 128
Notice: Trying to get property of non-object in C:\xampp\htdocs\connector.php on line 128
Notice: Undefined offset: 6 in C:\xampp\htdocs\connector.php on line 192
Notice: Undefined offset: 1 in C:\xampp\htdocs\connector.php on line 193
Your Connection Details:
Content-Length: 0
A Single Search Result:
bool(false)
A Single Trade Detail:
bool(false)
thanks for your help 🙂
Add this code:echo elgg_view(‘page/elements/comments_block’);In the fileelgg/mod/MOD_NAME/views/default/MOD_NAME/sidebar.php for MOD\PLUGINwhen you want to show cmoments for it.Ex., for TheWire add this code in:elgg/mod/thewire/views/default/thewire/sidebar.phpor create this fileNo need to use array() for it But if you want to show last cmoments for TheWire on the Bookmarks page yes need use array() function for that subtype Ex., last cmoments from TheWire’ posts on the Bookmarks sidebar:Open the fileelgg/mod/bookmarks/views/default/bookmarks/sidebar.phpAnd add this codeecho elgg_view(‘page/elements/comments_block’, array(‘subtypes’ => ‘thewire’,));Now you can to see last cmoments for TheWire on the Bookmarks sidebarAlso, if you want to show last cmoments from OWNER only..yes in all examples and variants you need to add this code:echo elgg_view(‘page/elements/comments_block’, array(‘subtypes’ => ‘YOUR_SUBTYPE’,’owner_guid’ => elgg_get_page_owner_guid(),));Because without ‘owner_guid’ => elgg_get_page_owner_guid(), will shown ALL last cmoments from ALL users for that subtype..Sorry for the many words
Guys,
This code no longer works.
There have been changes to the hashor, which means the hash wont return correctly.
There have also been some changes to EASW_KEY and the EASF_SESS.
The EASW_KEY and EASF_SESS can be corrected easily.. THe hash not so much..
Havent been able to solve it yet.. if anyone has the correct hashor and willing to share please let me know.
hey,
thx for sharing this, I have just one problem when i try to open this url in my browser
https://www.ea.com/p/fut/a/card-ps3/l/en_GB/s/p/ut/auth
i get following error :
{“debug”:””,”string”:”Forbidden (ut)”,”reason”:”Authentication action is not specified”,”code”:”403″}
Does someone have a solution for this?
does anyone know a way of finding the player name out of the array returned from the search function?
thanks!
Hello Robert,
I have a problem with the following piece of your “login” code :
//Phishing Key
$s = explode(“:”, $r[6]);
$t = explode(“;”, $s[1]);
$PHISHKEY = $t[0];
//Display the Phishing Key
//echo $PHISHKEY. ”
“;
I’ve read above that something has changed in the way EA gives back the information but can you give the right example please so i can use the right index and I get back the right “phising” key.
Thx
Hello everyone,
Connecting to my account and searching players has worked perfectly for me, after adjusting the code in some places.
Now trying to bid on a Player i come across a 404 error while sending the request to “https://utas.s2.fut.ea.com/ut/game/fifa13/”. $trade .”/bid” or alternativly https://utas.fut.ea.com/ut/game/fifa13/“. $trade .”/bid”
has the url for the biding request changed?
Is it possible to actually BUY a player to their BIN price?
I cant find any info on the internet about this. Please message me if you know the answer or would like to help me find out!
grz Richy
I have tried using C# and fiddler to connect without any luck. When I try to process the following request:
http://www.ea.com/p/fut/a/card-360/l/en_GB/s/p/ut/game/fifa13/user/accountinfo?timestamp=1358202893
I get 403 error: Forbidden. I attach the Cookie header as well. Any suggestions? Anyone else see this error?
Ea changed login sequence,this code will not work anymore.
sir
can you help me
Notice: Undefined variable: searchstring in C:\xampp\htdocs\web\search.php on line 8
<?php
if ($searchstring)
{
$sql="SELECT * FROM member WHERE $searchtype LIKE '%$searchstring%' ORDER BY fname DEC";
$db = mysql_connect("localhost", "root", "");
mysql_select_db("learndb",$db);
$result = mysql_query($sql,$db);
echo "”;
echo”Full NameNick NameOptions“;
while ($myrow = mysql_fetch_array($result))
{
echo “”.$myrow[“firstname”].” “.$myrow[“lastname”].””.$myrow[“nick”];
echo “View“;
}
echo “”;
}
?>
Insert you search string here
Search type
First Name
Last Name
Nick Name
Email
Seems like the API changed again, does anyone have this working?
EA changed the login procedure a little bit, now a user cannot start it’s login sequence without the first 2 cookies. Also a 3rd cookie is now added, EASF_PERSIST.
Hi,
Based on this script I am trying to rewrite code for fifa ultimate team 13 autobuyer, I am able to login but not able to search and bid for player.
Can anyone help me for this? I really need to make it workable
Thanks & Regards,
Niraj Bhatt
Email: njbhatt18@gmail.com
Greetings from Peru
I have many problems using the code of the connector.php, the copy errors below, I hope you can help me solve this problem.
Notice: Undefined offset: 1 in C:\wamp\www\Autobuyer\CONECTOR_AUTOBUYER.php on line 62
Notice: Undefined offset: 7 in C:\wamp\www\Autobuyer\CONECTOR_AUTOBUYER.php on line 66
Notice: Undefined offset: 1 in C:\wamp\www\Autobuyer\CONECTOR_AUTOBUYER.php on line 67
Notice: Undefined offset: 8 in C:\wamp\www\Autobuyer\CONECTOR_AUTOBUYER.php on line 70
Notice: Undefined offset: 1 in C:\wamp\www\Autobuyer\CONECTOR_AUTOBUYER.php on line 71
Notice: Undefined offset: 1 in C:\wamp\www\Autobuyer\CONECTOR_AUTOBUYER.php on line 75
Notice: Trying to get property of non-object in C:\wamp\www\Autobuyer\CONECTOR_AUTOBUYER.php on line 131
Notice: Trying to get property of non-object in C:\wamp\www\Autobuyer\CONECTOR_AUTOBUYER.php on line 131
Notice: Trying to get property of non-object in C:\wamp\www\Autobuyer\CONECTOR_AUTOBUYER.php on line 131
Notice: Trying to get property of non-object in C:\wamp\www\Autobuyer\CONECTOR_AUTOBUYER.php on line 132
Notice: Trying to get property of non-object in C:\wamp\www\Autobuyer\CONECTOR_AUTOBUYER.php on line 132
Notice: Trying to get property of non-object in C:\wamp\www\Autobuyer\CONECTOR_AUTOBUYER.php on line 132
Notice: Trying to get property of non-object in C:\wamp\www\Autobuyer\CONECTOR_AUTOBUYER.php on line 132
thanks Angel
i can’t connected using de connector.php, I think the error is in this part of the code line
line 62: list($h, $EALOGIN) = explode(“\r\n\r\n”, $response, 2);
this is the part of code
//POST data to send
$data_string = “email=”.$this->user.”&password=”.$this->password;
//Setup cURL HTTP request
$ch = curl_init($login);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, “POST”);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data_string);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HEADER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
‘Content-Type: application/x-www-form-urlencoded’,
‘Content-Length: ‘ . strlen($data_string))
);
$response = curl_exec($ch);
curl_close($ch);
//Split the HEADERS and BODY
list($h, $EALOGIN) = explode(“\r\n\r\n”, $response, 2);
$r = explode(“\r\n”, $h);
please helpme
Im getting a parse error on line 78? why