2010-05-02

PHP file_exists function bug and Domain Migration

First of all, let me say this is NOT a bug report. Just a friendly title to someone who might be asking themselves the same thing.

The other day i was reported that our Intranet website was not working properly. I looked at the PHP code to see if everything was in order and runned a few tests with variable placing inside the file_exists and the function was returning false when the file actually existed. Why is this i asked?! Eventually i found out, there was no bug or change in the code.

We had at our corporate environment migrated the domain and Intranet was running smoothly for 2 weeks. At the end of the 2 weeks the old domain was shutdown. Only by the third day this Intranet communication came to me, but the answer was that in the IIS manager for the Intranet Server, on the corresponding website properties, whe still had issues in the "Directory Security" tab, there was a user still there from the old domain.
The file_exists was trying to access the path with a user that was no longer valid, returning false on the function as it had no permissions.

Hope this helps

Taken from http://netprobe.blogspot.com/

1 comment:

  1. Lucky Club Casino Site | Lucky Club Casino 2021
    Lucky Club Casino. Welcome to the Lucky Club Casino site, where all you need luckyclub to know about the casino's games, welcome offers and more. Rating: 4 · ‎2 votes

    ReplyDelete