PaulC2K
02-11-2006, 06:20 AM
Is it possible to display purely the filename of the file which is currently on screen?
"__FILE__" does more than i'd care for it to do, I dont need to know the masses of directories before it, just *.php would be wonderfull!
Is it possible to have a value and deduct specific text from it?
Could i do something like
$fullfilename = __FILE__ ; // (/home/username/public_html/domain/filename.php)
$shortfilename = $fullfilename - "/home/username/public_html/domain/";
I know the above wont work, but thats effectively what i want (clearly i should start my own programming language!! :thumbsup: ) but ive no idea if something like that is out there?
Basically im desperate just to have the filename alone, any care to put me out of my misery? :D
Cheers,
PaulC2K
"__FILE__" does more than i'd care for it to do, I dont need to know the masses of directories before it, just *.php would be wonderfull!
Is it possible to have a value and deduct specific text from it?
Could i do something like
$fullfilename = __FILE__ ; // (/home/username/public_html/domain/filename.php)
$shortfilename = $fullfilename - "/home/username/public_html/domain/";
I know the above wont work, but thats effectively what i want (clearly i should start my own programming language!! :thumbsup: ) but ive no idea if something like that is out there?
Basically im desperate just to have the filename alone, any care to put me out of my misery? :D
Cheers,
PaulC2K