Mercurial > hg > ywww
comparison goodreads/syncGoodreadsShelves.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 |
|---|---|
| 35 curl_setopt ($crl, CURLOPT_CONNECTTIMEOUT, $timeout); | 35 curl_setopt ($crl, CURLOPT_CONNECTTIMEOUT, $timeout); |
| 36 $ret = curl_exec($crl); | 36 $ret = curl_exec($crl); |
| 37 $ret = preg_replace("/[^[:alnum:][:punct:][:space:]]/","",$ret); | 37 $ret = preg_replace("/[^[:alnum:][:punct:][:space:]]/","",$ret); |
| 38 //echo $ret; | 38 //echo $ret; |
| 39 | 39 |
| 40 include "../../private/db.php"; | 40 include "db.php"; |
| 41 | 41 |
| 42 $shelves = array(); | 42 $shelves = array(); |
| 43 | 43 |
| 44 $xml = new SimpleXMLElement(convert_utf8($ret)); | 44 $xml = new SimpleXMLElement(convert_utf8($ret)); |
| 45 for($i=0;$i<sizeof($xml->shelves->user_shelf);$i++){ | 45 for($i=0;$i<sizeof($xml->shelves->user_shelf);$i++){ |
