Re: How can I stop PHP from resolving symlinks?
| From: | Roy Souther | Date: | Thu, 23 Feb 2006 15:51:12 +0000 |
| Subject: | Re: How can I stop PHP from resolving symlinks? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-230965@lists.php.net to get a copy of this message | ||
I have been doing something to that affect in the past. The problem with
that is that every time a newer version of the CMS program is released I
have to go around to about 50 files and add that hack again.
I want to reduce the manual labour needed to maintain these web site.
Thanks for trying. I am thinking this is an Apache issue. I tested PHP
CLI and it works as expected just like a shell. Apache must be at fault
for this problem.
On Thu, 2006-02-23 at 11:37 +1100, Chris wrote:
> Roy Souther wrote:
>
> > How can I make PHP use the symlink and stop trying to resolve the
> > original files?
>
> Can you try:
>
> $mydir = dirname(__FILE__);
> include($mydir . '/../config.php');
>
> ?
>
> or
>
> $mydir = dirname(__FILE__);
> include(dirname($mydir) . '/config.php');
>
> --
> Postgresql & php tutorials
> http://www.designmagick.com/
>
Royce Souther
www.SiliconTao.com
Let Open Source help your business move beyond.
For security this message is digitally authenticated by GnuPG.
Attachment: [application/pgp-signature] This is a digitally signed message part signature.asc
Attachment: [application/pgp-signature] This is a digitally signed message part signature.asc