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