You could use either the PEAR HTTP_Request package, or the built-in
fopen/fread commands, which can make http calls in addition to
opening local files. The easiest way, though, in my opinion, is
file_get_contents, which automatically dumps the response into a
String object. And it's fast, apparently:
On Jul 27, 2007, at 9:31 PM, Andrew Hankinson wrote:
> Hi folks,
> I'm wanting to implement a PHP parser for an OAI-PMH response from our
> Dspace installation. I'm a bit stuck on one point: how do I get
> the PHP
> script to send a request to the OAI-PMH server, and get the XML
> response in
> return so I can then parse it?
> Any thoughts or pointers would be appreciated!