Include PHP library Request HttpRequest.php insight required

Discussion in 'HTML / PHP / JavaScript / CSS' started by sky233pilot, Jan 11, 2012.

  1. I searched existing posts and the knowledge base, but came up empty.


    I am attempting to include a php library inside a script. I need insight on how to locate/navigate the DiscountASP server.

    I am new to this site. I am primarily a C/C++/C# Dot.Net developer.

    Using phpinfo.php I can see PHP Version 5.3.6
    Further down the page I am able to locate the include path directive:
    include_path .;C:\php\pear

    I wish to access the HttpRequest.php file.

    Fatal error: Class 'HTTP_Request' not found in



    At my previous hosting provider, these worked fine:

    require_once 'Request.php';
    PEAR
    require_once 'HTTP/Request.php';
    require_once 'HTTP/Client.php';


    However, at DiscountASP, I receive this error:

    Fatal error: require_once(): Failed opening required 'HTTP/Request.php' (include_path='.;C:\php\pear') in E:\web\xx<myacct>xx\htdocs\php


    The application path seems to be on drive E: while the include path appears to be on drive C:

    I would appreciate any assistance that would provide some insight.

    Any links to information on performing this task for locating this library or tips and tricks to assist would be greatly appreciated.

    I would like to be taught for life, not be just be fed today.
    ref: "If you give someone a fish, you feed them for a day. If you teach them how to fish, you feed them for life."

    Is there a suggested way to iterate the file system to determine what *.php files/libraries/classes are installed?

    Is there a better method than Ass-U-Ming the class name is the filename?
    ex: var_dump(class_exists('HTTP_Request', false));


    Thank you,
    Sky233Pilot
     

Share This Page