I know how to do this in the Microsoft world: I can call the HTTPRequest class to get a page on the server - not on the client. I then want to find the title of the page in the DOM object to put into the new page I'm creating. I'm trying this:
$r = new HTTP_Request('http://www.yahoo.com/');
$r->sendRequest();
$page = $r->getResponseBody();
However, I'm getting this error:
"Cannot instantiate non-existent class: http_request"
Maybe my web host won't let me use that class. Is there another, easier way to do this?
Thanks.
2007-01-14
12:04:08
·
5 answers
·
asked by
blue_prince_of_dallas
2
in
Computers & Internet
➔ Programming & Design