You are here: Re: local pear installation (noob) « All PHP « IT news, forums, messages
Re: local pear installation (noob)

Posted by finbogey jones on 12/13/06 23:47

finbogey jones wrote:
> As my webhost provides the barest of barebones PEAR in their PHP5 setup,
> I'm installing it in my webspace. The PEAR install page
> (http://www.go-pear.org/manual/en/installation.shared.php) has been a
> great help and everything installed perfectly. But I'm having trouble
> getting my pages to recognize it. The install page suggests this snippet
> on each page:
>
>
> <?php
> ini_set('include_path', '~/pear/lib' . PATH_SEPARATOR
> . ini_get('include_path'));
>
> // From PHP 4.3.0 onward, you can use the following,
> // which especially useful on shared hosts:
> set_include_path('~/pear/lib' . PATH_SEPARATOR
> . get_include_path());
> ?>
>
> I've just popped it on its own into a page called pearinclude.php and I
> use "require" to point to it (or maybe I should use "include"?)
>
> Anyway, I think my problem is that I'm not sure of the exact path to
> enter for my pear install. It sits on my host in htdocs/pear/. Do I just
> replace '~/pear/lib' with 'htdocs/pear'? Probably not, but with what?
>
> Thanks for any help for a noob,
>
>
> grant

The problem may be that my webhost has pear installed, but no packages.
Is there a simple way use the webhost's pear install but use the pear
packages in my webspace on that host?


grant

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация