1 2 3 |
$root = dirname(dirname(dirname(__FILE__)));//Depends on how many levels to the root $self = str_replace($root, '', __FILE__); $self = str_replace ( '\\', '/', $self); |
1 2 3 |
$root = dirname(dirname(dirname(__FILE__)));//Depends on how many levels to the root $self = str_replace($root, '', __FILE__); $self = str_replace ( '\\', '/', $self); |