Mercurial > hg > ywww
comparison goodreads/getGoodreadsShelves2.php @ 49:a67bf725e87b
put both paths in include_path and depend on that
author | Charlie Root |
---|---|
date | Wed, 16 Jan 2019 13:42:15 -0500 |
parents | 077b0a0a3e6d |
children |
comparison
equal
deleted
inserted
replaced
48:da133c130c1d | 49:a67bf725e87b |
---|---|
43 curl_setopt ($crl, CURLOPT_CONNECTTIMEOUT, $timeout); | 43 curl_setopt ($crl, CURLOPT_CONNECTTIMEOUT, $timeout); |
44 $ret = curl_exec($crl); */ | 44 $ret = curl_exec($crl); */ |
45 $ret = preg_replace("/[^[:alnum:][:punct:][:space:]]/","",$ret); | 45 $ret = preg_replace("/[^[:alnum:][:punct:][:space:]]/","",$ret); |
46 echo $ret; | 46 echo $ret; |
47 | 47 |
48 include "../../private/db.php"; | 48 include "db.php"; |
49 | 49 |
50 $xml = new SimpleXMLElement(convert_utf8($ret)); | 50 $xml = new SimpleXMLElement(convert_utf8($ret)); |
51 for($i=0;$i<sizeof($xml->shelves->user_shelf);$i++){ | 51 for($i=0;$i<sizeof($xml->shelves->user_shelf);$i++){ |
52 | 52 |
53 $shelfName= $xml->shelves->user_shelf[$i]->name; | 53 $shelfName= $xml->shelves->user_shelf[$i]->name; |