I haven't heard the words "Gopher" and "Killer App" used in the same
sentence for a looong time.
On 7/30/07, Tim Shearer <[log in to unmask]> wrote:
> Depending on how locked down the php.ini file is (lots of good reasons to
> do this) you might look into curl.
> Curl can work in php.
> It talks lots of protocols (including https, which is how I got on board),
> including gopher for any killer apps you have planned.
> Tim Shearer
> Web Development Coordinator
> The University Library
> University of North Carolina at Chapel Hill
> [log in to unmask]
> On Fri, 27 Jul 2007, John McGrath wrote:
> > 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:
> > http://us.php.net/manual/en/function.file-get-contents.php
> > http://pear.php.net/package/HTTP_Request
> > http://us.php.net/fopen
> > http://us.php.net/manual/en/function.fread.php
> > Best,
> > John
> > 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!
> >> Andrew