Re: Re: trouble moving existing site that has "self-contained" Pear packages defined within own directories
| From: | l Burnerheimerton | Date: | Thu, 29 Mar 2007 14:09:23 +0000 |
| Subject: | Re: Re: trouble moving existing site that has "self-contained" Pear packages defined within own directories | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-26940@lists.php.net to get a copy of this message | ||
--- Markus Ernst <derernst@gmx.ch> wrote:
> If you still have access to the old server, it might
> be useful to check
> possible include_path settings at all levels. If
> not, try to compare the
> original PEAR directory structure with the one at
> your server, and add
> include_paths, such as:
>
> $incPath = $_SERVER['DOCUMENT_ROOT'].'/site';
> $incPath .= ':'.$incPath.'/HTML;
> ini_set('include_path',
> $incPath.':'.ini_get('include_path'));
>
> This will find PEAR.php in /site/HTML/, and also
> HTML/Common.php in
> /site/; and as you append the original include path,
> the rest of your
> application will not be affected. Of course you will
> have to delete all
> appearances of ini_set('include_path','.:..') and
> such, as this
> overrides your include_path settings.
>
> As I am not too familiar with server settings and
> related stuff, I am
> not sure whether this is the ultimate advice for
> you, but it might point
> a direction where to go on thinking...
>
> Also if you use older versions of PEAR, you might
> run into other errors
> related to server settings, PHP version, safe-mode
> and so on. If you are
> familiar with CVS, you might consider using it for
> finding differences
> in your PEAR packages compared to their originals.
>
> HTH
> Markus
Markus - many thanks for your extended reply and help.
A clarifying question:
Are you saying to change the Pear settings to:
$incPath = $_SERVER['DOCUMENT_ROOT'].'/site';
$incPath .= ':'.$incPath.'/HTML;
And add the following to each page of the site:
ini_set('include_path',
$incPath.':'.ini_get('include_path'));
or add all the those lines to each page of the php
pages?
Thanks!
____________________________________________________________________________________
Food fight? Enjoy some healthy debate
in the Yahoo! Answers Food & Drink Q&A.
http://answers.yahoo.com/dir/?link=list&sid=396545367