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

Your name:

Reply:


Posted by Ray on 07/29/07 17:18

On Jul 29, 5:52 pm, Rik <luiheidsgoe...@hotmail.com> wrote:

> Impossible to tell without the code (and I must confess I try to stay
> clear of IIS), but a simple chdir() will offcourse change the working dir.

I've experimented a little more, and I'm totally baffled! Here's what
happening (I don't want to post reams of code unless I have to :-) ):

* In both apps, there's a login page which does a simple POST to an
authentication page.

* I put chdir('c:\\windows\\system32') at the top of the login page in
each, and a print getcwd() at the bottom, the very last line before
the closing tag.

* I put print getcwd() at the top of each authentication page - the
very first line after the opening tag.

* In one app, the output shows that the working directory gets changed
between the end of the login page and the start of the authentication
page; in the other app, it doesn't get changed.

I can't see any difference between the settings in either app. The
sequence in which I access the apps doesn't matter: always the same
app changes the working directory and the same app doesn't. There is
no code of mine getting executed at the point when the directory
changes - unless, of course, I don't understand the order in which
things get executed, which is entirely possible.

If it makes any difference, I have PHP installed as an ISAPI filter
under IIS, rather than CGI.

Thanks,

Ray.

[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

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