httprequest

Discussion in 'PHP and MySQL' started by sanjaysk, Feb 16, 2010.

  1. sanjaysk

    sanjaysk Perch

    I can't get the sample php script to work to get a web page content. It gives parse errors on jodohost Windows server. How can I make it work?

    <?php
    $r = new HttpRequest('http://google.com', HttpRequest::METH_GET);
    try {
    echo $r->send()->getBody();
    } catch (HttpException $ex) {
    echo $ex;
    }
    ?>
  2. Stephen

    Stephen US Operations Staff Member

    I believe answered in ticket, but will need custom php.ini and enable the extension.

Share This Page

JodoHost - 26,000 hosting end-users in 100 countries
Plesk Web Hosting
VPS Hosting
H-Sphere Web Hosting
Other Services