i'm trying to make a script solely in php, not javascript, but i don't find a way to remove the path from $_SERVER['PHP_SELF']. it returns /folder/subfolder/file.php . What can I do? Using javascript's lastindexof would be a solution, but i'd rather not use javascript. php is a lot better.
I know, I could compare the $_SERVER['PHP_SELF'] to the whole path, but I want it to work both on my web server AND my home server. (easyPHP).
I know, I could compare the $_SERVER['PHP_SELF'] to the whole path, but I want it to work both on my web server AND my home server. (easyPHP).






