Reply to Re: Required files confused between applications on same server

Your name:

Reply:


Posted by Rik on 07/28/07 18:39

On Sat, 28 Jul 2007 20:32:47 +0200, Ray <rod@iol.ie> wrote:

> Hi all,
>
> I'm running PHP 5.2.0 on my Windows XP laptop, running under IIS. I
> have files named 'config.php' in two different web applications on
> this machine, which are included throughout each via 'require' in one
> and 'require_once' in the other.
>
> When I attempt to use the two applications simultaneously, the file
> which was 'require_once'-ed is also being accessed from the other
> application, even though the two applications are isolated from each
> other in IIS, and are in completely different directories on the
> computer.
>
> Has anyone come across this before? Is it a known bug?

Normallly, PHP checks a full path afaik, but I have no experience with IIS

Is the full path in get_included_files() or isn't it? And are you calling
it by the full path or not? Perhapse it's an include_path issue. Then
again, it might be as simple as a relative call in on of the applications
which doesn't turn out OK, because it makes wrong assumptions about the
current working directory, in which case they should be fixed.
--
Rik Wasmus

[Back to original 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

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