Zip hit another glitch ,

Soft2050 method is working tho giving the full filelocation .

I need to rename folderx as well , remove empty spaces e.g :

"The Folder X" > "The.Folder.X"


$folder = array();
foreach (glob("$location*") as $thefolder) {
If (is_dir($thefolder)) {
$folder[] = $thefolder;
$folderx = $folder[0];
}
}


Is there any additional code i can add for this ?

when i run the above code i get : /location/The Folder X







viruz99 Reviewed by viruz99 on . [PHP] Get Folder Name In A Location Hey Guys , Any idea how to get a name of a folder via php . e.g : /...../location/folderx i don't have the name of the folderx , how can i get the folder name via php ? Rating: 5