Jump to content
Larry Ullman's Book Forums

Recommended Posts

Larry,

 

In Chapter 4 of PHP 5 Advanced you asked us to install PEAR without going into specific detail of how to do it.

 

My host has a plethora of options for installing PEAR and I don't know which to choose.

 

Reading pear.php.net is a litte frustrating, as it seems to digress quite a bit.

 

I was wondering if you may lend a little guidance.

 

Thank you for your time.

Share this post


Link to post
Share on other sites

Sure thing. Really depends upon the operating system in use, however. But if your host has options that will install PEAR, it shouldn't really matter HOW PEAR is installed so long as it is.

Share this post


Link to post
Share on other sites

Hi,

I installed pear on my computer and built a site using html_QuickForm2. All very nice. Then I upload the site to my shared webhost and the pages that have the quickform in it are not showing. Pear is installed (I can see this in the php info file.) The path would be:  .:/usr/share/pear:/usr/share/php
My code now is like this (but still no show ;-(

    $path = '.:/usr/share/pear:/usr/share/php';
    set_include_path(get_include_path() . PATH_SEPARATOR . $path);
    
    require('HTML/QuickForm2.php');

Do I have to upload the quickform files aswell? And where would I put them?

Share this post


Link to post
Share on other sites

QuickForm2 needs to be installed, yes. I would ask your host to install that component, since they've already installed PEAR.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...