Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End (SOLVED) PHP HTTP/Request Error

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #30919
    goplutus
    Member

    I’m trying to integrate w/ a few APIs, and getting started is causing me fits.
    The Code:

    
    
    require('HTTP/Request.php');
    $url = "http://example.com";
    $request =& new HTTP_Request($url);
    $request->sendRequest();
    $response = $request->getResponseBody();
    ?>

    The Result:


    Warning: require(HTTP/Request.php) [function.require]: failed to open stream: No such file or directory in /home/stodgy5/public_html/trackstart/start.php on line 3

    Warning: require(HTTP/Request.php) [function.require]: failed to open stream: No such file or directory in /home/stodgy5/public_html/trackstart/start.php on line 3

    Fatal error: require() [function.require]: Failed opening required 'HTTP/Request.php' (include_path='.:/usr/lib/php:/usr/local/lib/php:/home/stodgy5/php') in /home/stodgy5/public_html/trackstart/start.php on line 3

    I’m assuming this is a directory issue, as my cPanel says Pear is installed. Any advice?

Viewing 1 post (of 1 total)
  • The forum ‘Back End’ is closed to new topics and replies.