Return to Snippet

Revision: 25882
at April 13, 2010 05:19 by zartgesotten


Initial Code
//get full path including filename of current file
$fileTarget = __FILE__;
// get absolute path
$path = dirname($fileTarget);
//or shortform
$path = dirname(__FILE__);

Initial URL

                                

Initial Description

                                

Initial Title
Get full path of current file

Initial Tags
php, path

Initial Language
PHP