Page 1 of 1

he below command supported by:version1.7.4 curl_init($theUR

PostPosted: 25. March 2012 16:21
by lse123
he below command supported by:
###### ApacheFriends XAMPP (Basispaket) version 1.7.4 ######
+ Apache 2.2.17
+ MySQL 5.5.8 (Community Server)
+ PHP 5.3.5 (VC6 X86 32bit) + PEAR
+ XAMPP Control Version 2.5 from http://www.nat32.com
+ XAMPP Security
+ SQLite 2.8.15
+ OpenSSL 0.9.8o
+ phpMyAdmin 3.3.9
+ ADOdb 5.11
+ Mercury Mail Transport System v4.62
+ FileZilla FTP Server 0.9.37
+ Webalizer 2.01-10
+ Zend Optimizer 3.3.0
+ Perl 5.10.1
+ Mod_perl 2.0.4
+ Tomcat 7.0.3

Code: Select all
$c = curl_init($theURL);
curl_setopt ($c, CURLOPT_RETURNTRANSFER, 1);
$xml = curl_exec($c);
curl_close($c);

$doc = new DOMDocument();
$doc->loadXML($xml);
$root = $doc->documentElement;

$theNodes = $root->getElementsByTagName('Item');

Re: he below command supported by:version1.7.4 curl_init($t

PostPosted: 25. March 2012 22:40
by Sharley
Curl is supported when enabled in the php.ini file.

Open \xampp\php\php.ini file in a text editor like notepad and uncomment this line (remove the ; from the beginning of the line)
Code: Select all
;extension=php_curl.dll
so it looks like this
Code: Select all
extension=php_curl.dll
Then save the file and restart Apache.

Only enable the curl extention for now and only enable extensions as they are needed or you may find there will be problems if you enable all the extensions.

Check that it is enabled by going to http://localhost/xampp/phpinfo.php and look for the curl section.

Re: he below command supported by:version1.7.4 curl_init($t

PostPosted: 26. March 2012 14:48
by lse123
it was enabled from before, seems not this the problem, thanks... I was trying a deprecated amazon.com api web service search mashup...same time with google search but only google results appear...