programming

What is the path for the 404 not found file

I've tried to load a page on the local server, however it gives me a 404 not found. When I go to the log file, I just get one line saying its 404 error:

178.148.41.8 - - [02/May/2011:06:03:07 -0500] 5365 "GET /index.php HTTP/1.1" 404 - "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_5_8) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.57 Safari/534.24"

Log file doesn't say which local file it was trying to load to get index.php. It usually does though, so I figured something strange is going on.

404 not found from php giving blank page instead of error page

This PHP code

header($_SERVER["SERVER_PROTOCOL"]." 404 Not Found");
exit;

gives blank page in firefox and safari. Not in other browsers, though, they are displaying correct error page. I was looking for an answer on how to get a proper 404 not found error page to be displayed in these browsers, and if something was wrong with my php code. But apparently there was nothing to worry about, Safari and Firefox do not have default error pages!

Flex - perspective and other shortcuts

Adobe Flex doesn't have shortcuts for perspective switching easily available. It would be nice if they were printed by the perspective name. However, you can find this and other shortcuts by going

Preferences -> General -> Keys

There's a search box here so you can find shortcuts by keywords. If you enter "perspective" you will find out that switching perspectives is done by (Windows) Ctrl - or (Mac) Command - F8

Maybe you should get a shortcut to display this search box, until you've adopted the essential Flex shortcuts to your work habits.

Subscribe to RSS - programming