I did a manual install (I had to do this because the computer its on doesnt have internet access) and have the PEAR package and Quickforms package, yet cant get it to work. I'm new to PEAR, so please bear with me. :p

phpinfo says my include_path = '.;c:\php5\pear'
I cannot find that line in the php.ini file though. So what do I add to my ini file?

    Hi,

    The phpinfo output you posted contains C:\php5\pear. Check if the directory c:\php5 (and/or c:\php5\pear) exists. Check if you've installed php twice since c:\appserv\php5\pear\ and c:\php5\pear are different directories.

    The phpinfo output contains a line (near the top of the output) that contains the full path to the php.ini file used by php. Make sure to modify the php.ini file printed by phpinfo().
    You need to add the include_path line to php.ini if it doesn't exist.

    Thomas

      I have only 1 install of PHP. THe php.ini I edited is the only one and matches phpinfo(). I added:
      include_path = ".;c:\appserv\php5\pear"
      to php.ini and restarted apache.

      I fixed my folders, as I noticed the package.xml file for QuickForm states it should be elsewhere.

      When I do my require I do this:

      require('HTML\QuickForm.php');
      $form = new HTML_QuickForm();
      

      But it still doesnt work and complains about the require failing to open the stream (find the file).

        Can you copy-and-paste the error message here?

          I found out what I did wrong. Going to post it here so I don't forget and maybe it will help others.

          I removed all my manual installs to set stuff back how it was before messing with anything.

          I used go-pear.bat from the command line at c:\appserv\php5
          hit enter to accept its settings and let it go through that (no matter what warnings or errors) even though I have no internet access. Then set include_path = ".;c:\appserv\php5\pear" in php.ini and restarted apache.

          HTML_QuickForm requires HTML_Common (you have to check dependencies on the download page for whatever package you want). So I needed to download both of those and manually install them like this:

          I made a folder called HTML in c:\appserv\php5\pear and put Common.php and QuickForm.php and its junk in there. (You have to use package.xml files to figure out where stuff goes since you cant rely on the installer to do it for you if you are offline like me).

          And now it works 🙂

            Write a Reply...