PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I took the following code from PHP manual, but it doesn't work. Anyone has idea? I am running in Fedora Core 3, and my PHP is 4.3.11, Apache is 2.0.53-3.2.
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
I tried in another machine, it works. But I am thinking ie or firefox keep the authentication for a while, if login again immediately , the prompt windows will not come out. Am I right?
Horribly enough, IE handles this properly while FF doesn't (in my opinion). As long as a window is open, Firefox caches authentication credentials. So, as long as the current window is open and someone has authenticated, $_SERVER['PHP_AUTH_PW'] will exist. With the logic displayed on php.net, this will allow users to get in without needing to authenticate.
IE doesn't do this. It never stores PHP_AUTH_PW beyond the next page load. So, someone coming in after the fact won't be able to get in using someone else's credentials.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.