Http_request2 problem (php)

Hi,
i’m a new user and i need your help.
i need to create a PHP script with input params min and max coordinates and output create a map portion and save it into a file on server.
Next step is to create a POI visible on map…next step!
But now, i found only this script on internet:


<?php
//http://pear.php.net/package/Services_OpenStreetMap
require_once 'Services/OpenStreetMap.php';
$osm = new Services_OpenStreetMap();

$osm->get(-8.3564758, 52.821022799999994, -7.7330017, 53.0428644);
file_put_contents("area_covered.osm", $osm->getXml());

?>

THERE IS A PROBLEM: my server doesn’t support HTTP_REQUEST2 library


Fatal error: require_once() [function.require]: Failed opening required 'HTTP/Request2.php' (include_path='.:/usr/local/php-gd-5.2.17/lib/php') in 

There is an onther way to do this without HTTP_REQUEST2 library?

Thanks a lot!