Yeah very common, in PHP for those who dont know.

pre 5.3
PHP Code: 
$PROJECT_PATH realpath(dirname(__FILE__)); 
post 5.3
PHP Code: 
$PROJECT_PATH realpath(__DIR__); 
SplitIce Reviewed by SplitIce on . Snippet of the Day Disclaimer: Ok, just an idea I thought up. Might take off, might not. With that out of the way let me introduce snippet of the day. In this thread you may post one snippet of code a day (at most) that you are particularly proud of. Rules: Snippets must be at most 15 lines long. Try to keep them as short as possible. You must have written them yourself and within the course of the day. Any language is allowed No insulting peoples coding. Although that said, if you just started Rating: 5