Thursday, January 7, 2010

Current Directory PHP

I always need this. Here's how to get the current directory of a file in php:

echo dirname(__FILE__);

No comments:

Post a Comment