Advertisement
Guest User

user.php

a guest
Mar 28th, 2012
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. <?php
  2. $user = file_get_contents('https://graph.facebook.com/sean.wichers');
  3. $json = json_decode($user, true);
  4. {
  5. $uinfo = (array) $json;
  6. 'id' => $uinfo->id,
  7. 'name' => $json->name,
  8. 'first_name' => $json->first_name,
  9. 'last_name' => $json->last_name,
  10. 'link' => $json->link,
  11. 'username' => $json->username,
  12. 'gender' => $json->gender,
  13. 'locale' => $json->locale
  14. );
  15. }
  16. include 'user1.php';
  17. ?>
  18. //*____________________----------____________________//
  19. // {
  20. // echo $json['id'];
  21. // }
  22. //$con = mysql_connect("localhost","swichers_tagn","wichers90");
  23. //if (!$con)
  24. // {
  25. // die('Could not connect: ' . mysql_error());
  26. // }
  27.  
  28. //mysql_select_db("swichers_jo151", $con);
  29.  
  30. //mysql_query("INSERT INTO jos_users (id, name, username, email, password, usertype, block, sendEmail, registerDate, lastvisitDate, activation, params, gid)
  31. //VALUES ($json->id, $json->name, json->username, ' ', ' ', 'Registered', '0', 1, '', '18')");
  32. //mysql_close($con);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement