Re: XML Next 25 Results

From: Date: Tue, 07 Aug 2001 06:37:15 +0000
Subject: Re: XML Next 25 Results
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-61554@lists.php.net to get a copy of this message
Hi Gerry The XML isn't coming directly from a database, it's coming from an IIS server that i query (i generate XML file containing the parameters of the query, POST it to the IIS machine, it runs some .ASP to query an inhouse database, then POST the XML results back to me) I then parse the XML to generate a HTML table, however sometimes i may end up with a massive table, and i'm trying to find a way to break that table into pages of 25 results. However, i'm completely stumped how to do this :( Regards Girish -- function fetchXML($parameters, $request) { $appserverIP = "123.456.789.10"; $appserverPort = "8080"; $appserverPacketSize = "4096"; $phpServer = "aeris"; $header .= "POST /directory/" . $request . " HTTP/1.1\r\n"; $header .= "Host: " . $phpServer . "\r\n"; $header .= "User-Agent: PHP\r\n"; $header .= "Content-type: application/x-www-form-urlencoded\r\n"; $header .= "Content-length: " . strlen($parameters)."\r\n"; $header .= "Connection: close\r\n\r\n"; $fp = fsockopen($appserverIP,$appserverPort); if ($fp) { fputs($fp, $header . $parameters); while (!feof($fp)) { $response .= fgets($fp,$appserverPacketSize); } fclose($fp); } return cleanXML($response); // custom function to strip HTTP headers from fetched data. } ----- Original Message ----- From: "Gerry Kirk" <gerry@mccb.org> To: "Girish Nath" <girishn@btinternet.com> Sent: Tuesday, August 07, 2001 5:22 AM Subject: Re: [PHP] XML Next 25 Results Hello Girish, I can't help you with your problem, as I am just getting acquainted with XML myself. I've been doing some research to assess the feasibility of using PHP and XML for a web-based database-driven application. If you don't mind, could you share with me how you are using XML? Are you retrieving / querying / storing data from a database? Thanks, Gerry Kirk

« previous php.general (#61554) next »