Re: [CODE4LIB] parse an OAI-PHM response

2007-07-30 Thread Harrison Dekker
Long live Gopher!

gopher://gopher.floodgap.com/


On 7/30/07, Andrew Hankinson <[EMAIL PROTECTED]> wrote:
>
> I haven't heard the words "Gopher" and "Killer App" used in the same
> sentence for a looong time.
> Thanks!
>
> On 7/30/07, Tim Shearer <[EMAIL PROTECTED]> wrote:
> >
> > Depending on how locked down the php.ini file is (lots of good reasons
> to
> > do this) you might look into curl.
> >
> > http://curl.haxx.se/
> >
> > Curl can work in php.
> >
> > http://us.php.net/curl
> >
> > It talks lots of protocols (including https, which is how I got on
> board),
> > including gopher for any killer apps you have planned.
> >
> > -t
> >
> > +++
> > Tim Shearer
> >
> > Web Development Coordinator
> > The University Library
> > University of North Carolina at Chapel Hill
> > [EMAIL PROTECTED]
> > 919-962-1288
> > +++
> >
> >
> >
> > 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
> >
>



--
Harrison Dekker
Coordinator of Data Services
Doe/Moffitt Libraries, UC Berkeley


Re: [CODE4LIB] parse an OAI-PHM response

2007-07-30 Thread Andrew Nagy
Andrew, I began building a PHP OAI Client library based on a OAI Server library 
that I wrote a while back.  The OAI Client library is not complete, but it can 
get you started.  I attached it in a file called Harvester.php

Andrew

> -Original Message-
> From: Code for Libraries [mailto:[EMAIL PROTECTED] On Behalf Of
> Andrew Hankinson
> Sent: Friday, July 27, 2007 9:32 PM
> To: CODE4LIB@listserv.nd.edu
> Subject: [CODE4LIB] parse an OAI-PHM response
>
> 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


Harvester.php
Description: Harvester.php


Re: [CODE4LIB] parse an OAI-PHM response

2007-07-30 Thread Andrew Hankinson
I haven't heard the words "Gopher" and "Killer App" used in the same
sentence for a looong time.
Thanks!

On 7/30/07, Tim Shearer <[EMAIL PROTECTED]> wrote:
>
> Depending on how locked down the php.ini file is (lots of good reasons to
> do this) you might look into curl.
>
> http://curl.haxx.se/
>
> Curl can work in php.
>
> http://us.php.net/curl
>
> It talks lots of protocols (including https, which is how I got on board),
> including gopher for any killer apps you have planned.
>
> -t
>
> +++
> Tim Shearer
>
> Web Development Coordinator
> The University Library
> University of North Carolina at Chapel Hill
> [EMAIL PROTECTED]
> 919-962-1288
> +++
>
>
>
> 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
>


Re: [CODE4LIB] parse an OAI-PHM response

2007-07-30 Thread Tim Shearer

Depending on how locked down the php.ini file is (lots of good reasons to
do this) you might look into curl.

http://curl.haxx.se/

Curl can work in php.

http://us.php.net/curl

It talks lots of protocols (including https, which is how I got on board),
including gopher for any killer apps you have planned.

-t

+++
Tim Shearer

Web Development Coordinator
The University Library
University of North Carolina at Chapel Hill
[EMAIL PROTECTED]
919-962-1288
+++


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


Re: [CODE4LIB] parse an OAI-PHM response

2007-07-27 Thread John McGrath

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


[CODE4LIB] parse an OAI-PHM response

2007-07-27 Thread Andrew Hankinson
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