From: Bob W. <bwi...@pl...> - 2008-03-29 02:13:19
|
It works on my Ubuntu box so it looks like it may have something to do with the version of PHP on CentOS. CentOS PHP: 5.1.6 Ubuntu PHP: 5.2.3 CentOS is basically Redhat Enterprise Linux without the branding and support. Bob ----- Original Message ----- From: "Bob Wicksall" <bwi...@pl...> To: VuF...@li... Sent: Friday, March 28, 2008 9:41:29 PM (GMT-0500) America/New_York Subject: [VuFind-General] Problem with book covers I'm having trouble getting Amazon book covers to work on my install. When they are enabled I get the following error in my logs: [Fri Mar 28 20:39:25 2008] [error] [client 10.211.55.5] PHP Warning: fopen(http://ecx.images-amazon.com/images/I/51ZEAD9ZEEL._SL75_.jpg) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: HTTP request failed! HTTP/1.0 408 Request Time-out\r\n in /usr/local/vufind/web/bookcover.php on line 144, referer: http://10.199.30.172/vufind/Search/Home?lookfor=hobbit&type=all&submit=Find&search=new I've double checked my PHP settings and allow_url_fopen =on I wrote a short php script to test and it fails every time on the images from Amazon but succeeds when opening images from one of my servers. <?php //$fp = fopen('http://ecx.images-amazon.com/images/I/01355X0F6FL.jpg', 'r'); $fp = fopen('http://www.pls-net.org/images/owwl2gobutton.jpg','r'); if ($fp){ echo "Looks like it opened!"; fclose($fp); } else { echo "Didn't work"; } ?> I'm running PHP version 5.1.6 on CentOS 5.1. Amazon reviews are working fine. It's only the book covers. Bob Wicksall Systems Administrator Pioneer Library System 2557 State Rt. 21 Canandaigua, New York 14424 Voice: (585) 394-8260 Fax: (585) 394-1935 ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ VuFind-General mailing list VuF...@li... https://lists.sourceforge.net/lists/listinfo/vufind-general |