lilman Posted November 19, 2006 Share Posted November 19, 2006 I have this code:[code]$path_parts = $_SERVER['PHP_SELF'];$file = basename($path_parts);[/code]basename will pull the name of the file, is there a function I can use to pull the folder name? Link to comment https://forums.phpfreaks.com/topic/27791-function-folder-name/ Share on other sites More sharing options...
lilman Posted November 19, 2006 Author Share Posted November 19, 2006 I found a function: dirname() Link to comment https://forums.phpfreaks.com/topic/27791-function-folder-name/#findComment-127145 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.