Re: Trying to learn how to package a software
[Moving the conversation do -mentors, where it should be..]
Le Wednesday 14 November 2007 01:21:24 Roberto C. Sánchez, vous avez écrit :
> On Tue, Nov 13, 2007 at 09:18:08PM -0300, Jean Silva wrote:
> > I tried to put db in /var/cache/pivot-weblog/db/ and the
> > rest of the directories in /usr/share/pivot-weblog/. However,
> > there are some scripts in the pivot directory that manage the
> > information stored in db and refer to files inside it using
> > relative paths. For exaple, from pv_core.php:
> > if (file_exists("db/ser_lasttrack.php"))
> > I'd like knowing if there is a way to make pv_core.php
> > access the directory /var/cache/pivot-weblog/db/ without
> > writing the full path in the source code. Any suggestion?
> > Thanks in advance.
> One way is a symlink: /usr/share/pivot-weblog/db ->
This maight not be enough.
In fact PHP's include expand symlink paths to originals paths, so you might
also need to add symlinks to /usr/share/../ at /var/cache/../, in case those
files include themselves files from /usr/share/.../