Re: Re: talking to a web page
| From: | David T-G | Date: | Wed, 03 Dec 2003 23:08:47 +0000 |
| Subject: | Re: Re: talking to a web page | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-171744@lists.php.net to get a copy of this message | ||
Justin, et al --
..and then Justin Patrin said...
%
% One last thing. If all you need to do is go to a page and not navigate
% it, you could just use HTTP_Request, upon which HTTP_Client is built.
That sounds even better; I'm only going to be dealing with a couple of
pages.
% Then again, if you have multiple request to do and have to keep sending
% the auth data, the Client would be best.
I'll try either both. I'm having some trouble getting started, though...
I surfed over to pear.php.net, found and downloaded both (yikes, Client
is only a 0.2 release :-) and opened them up. I made
/usr/local/lib/php/HTTP
and then copied each's contents in there (well, the docs/ over to the lib
docs file), so I now have
/usrlocal/lib/php/HTTP/Client.php
/usrlocal/lib/php/HTTP/Client/CookieManager.php
/usrlocal/lib/php/HTTP/Client/Listener.php
and similar for HTTP_Request but when I run a simple
echo "<?php require_once('HTTP/Client.php') ; print 'done';?>"
|php -q
I get back "Failed opening required 'HTTP/Client.php'" :-(
Is there a different install procedure?
TIA & HAND
:-D
--
David T-G * There is too much animal courage in
(play) davidtg@justpickone.org * society and not sufficient moral courage.
(work) davidtgwork@justpickone.org -- Mary Baker Eddy, "Science and Health"
http://justpickone.org/davidtg/ Shpx gur
Pbzzhavpngvbaf Qrprapl Npg!