Re: [PHP] Retrieve pages from an ASP driven site
Thanks Lester. On Thu, May 3, 2012 at 3:49 AM, Lester Caine les...@lsces.co.uk wrote: Terry Ally (Gmail) wrote: Here is how you would paginate in PHP. Terry - Tom is not trying to create this in PHP, but read existing ASP pages. Tom - I don't think that it's simply a matter of the ASP code here, but rather how they have constructed the set of information they are sending back. That is done in javascript, but the navigation buttons are simple form submit. BNext is submitted for 'next'. Interestingly, the sales side seems to be .php ;) -- Lester Caine - G8HFL - Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve - http://enquirysolve.com/ Model Engineers Digital Workshop - http://medw.co.uk// Firebird - http://www.firebirdsql.org/index.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Retrieve pages from an ASP driven site
Hi List, I am trying to write a crawler to go through web pages at http://www.freebookspot.es/CompactDefault.aspx?Keyword=. But I am not quite familiar with how asp uses _doPostBack function with the next button below the book list to advance to the next page. I hope someone who knows ASP well can help out here. I need to know how to retrieve next page with PHP code. Kind regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Soap Client Help
Hi All, I am using the following code to build a SoapClient with some web service: ?php ini_set(soap.wsdl_cache_enabled, 0); ini_set('default_socket_timeout', 600); $client = new SoapClient(http://iaspub.epa.gov/webservices/StationService/index.html?WSDL,array('trace' = 1)); try { $sc = $client-getStationCount(43.1,43.5,-83.5,-83.1); print $sc; } catch (SoapFault $exception) { echo $exception; } ? // But I got the following error: /// Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Unspecified encodingStyle in /var/www/myphp/wqxststest.php:5 Stack trace: #0 /var/www/myphp/wqxststest.php(5): SoapClient-SoapClient('http://iaspub.e...', Array) #1 {main} thrown in /var/www/myphp/wqxststest.php on line 5 /// Also when I tried same code (See below) with another service, it seems working fine. /// ?php $huc = $_REQUEST['huc']; ini_set(soap.wsdl_cache_enabled, 0); ini_set('default_socket_timeout', 600); $client = new SoapClient(http://iaspub.epa.gov/webservices/WatershedSummaryService/index.html?WSDL,array('trace' = 1)); try { $client-getCharacteristicSummary($huc); print $client-__getLastResponse(); } catch (SoapFault $exception) { echo $exception; } /// ? I tried to find what's causing this error on Google but no success. Anyone know what's going on? Your help is highly appreciated! Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php