advanced code snippet search
zartgesotten on 04/13/10
php path filename dirname filepath
1 person have marked this snippet as a favorite
//get full path including filename of current file$fileTarget = __FILE__;// get absolute path$path = dirname($fileTarget);//or shortform$path = dirname(__FILE__);
Report this snippet
You need to login to post a comment.