Loading a URL

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



/*I am trying to load an XML file from the following site, which btw is a working site you can put in the address bar.*/
$url = "http://isbndb.com/api/books.xml?access_key=WC2BD24W&results=prices&index1=isbn&value1=030681496x";;
 //open the url
   if(!($handle = fopen($url, "r"))){
	echo "Error opening URL <br />".$url;
	exit();
   }	
   else{
    echo "It Worked";
    //actually use simpleXML and parse it, but that's not the problem.
}
 
/*
*For some reason that code returns:
*Error opening URL
*http://isbndb.com/api/books.xml?access_key=WC2BD24W&results=prices&index1=isbn&value1=030681496x
*Is there something obvious that I am missing, or what? 
*/

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux