Mercurial > hg > ywww
comparison goodreads/bkp/syncGoodreadsShelves.php @ 15:385ddd7c4b55 testing
use test_db.php to get mysqld_test instance
author | Henry S. Thompson <ht@inf.ed.ac.uk> |
---|---|
date | Sun, 19 Feb 2017 16:17:53 +0000 |
parents | 077b0a0a3e6d |
children |
comparison
equal
deleted
inserted
replaced
14:1477b5e6dd16 | 15:385ddd7c4b55 |
---|---|
14 curl_setopt ($crl, CURLOPT_CONNECTTIMEOUT, $timeout); | 14 curl_setopt ($crl, CURLOPT_CONNECTTIMEOUT, $timeout); |
15 $ret = curl_exec($crl); | 15 $ret = curl_exec($crl); |
16 $ret = preg_replace("/[^[:alnum:][:punct:][:space:]]/","",$ret); | 16 $ret = preg_replace("/[^[:alnum:][:punct:][:space:]]/","",$ret); |
17 //echo $ret; | 17 //echo $ret; |
18 | 18 |
19 include "../../private/db.php"; | 19 include "../../../private/db_test.php"; |
20 | 20 |
21 $shelves = array(); | 21 $shelves = array(); |
22 | 22 |
23 $xml = new SimpleXMLElement(convert_utf8($ret)); | 23 $xml = new SimpleXMLElement(convert_utf8($ret)); |
24 for($i=0;$i<sizeof($xml->shelves->user_shelf);$i++){ | 24 for($i=0;$i<sizeof($xml->shelves->user_shelf);$i++){ |