Re: Directory structure problem
| From: | Mika Tuupola | Date: | Thu, 01 Jan 1970 00:00:00 +0000 |
| Subject: | Re: Directory structure problem | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-1593@lists.php.net to get a copy of this message | ||
On Fri, 17 Aug 2001, Tomas V.V.Cox wrote:
> > print "Foo/Bar.php included";
> > require_once('Bar/fez.php');
> This should be: Foo/Bar/fez.php
Yes I know. But if you read the original:
http://marc.theaimsgroup.com/?l=pear-dev&m=99802256814487&w=2
the problem was that if _in cvs_ I had the stuff in directory
Foo_Bar (like Net_Ping for example), and after running the PEAR
installer the stuff goes into directory Foo/Bar/ this will
break all the includes which in cvs point into Foo_Bar/Dir/
but after running PEAR installer should point to Foo/Bar/Dir/
So either the requires are broken during developing or after
running the installer (if the directory structure is different
in cvs and actual install).
This problem does not exist if there are no subdirectories
in Foo_Bar.
Possible solutions are:
a) Install the stuff in Foo_Bar/
b) Have the stuff in cvs in Foo/Bar/
c) Change the requires to point into correct places during
installation.
d) Change the requires just before committing stuff to cvs
I'm not sure if I am missing something really obvious in here? :)
--
Mika Tuupola http://www.appelsiini.net/~tuupola/