$filelocation = 'http://www.somwhere.com/file.zip';
$ext = strrchr($filelocation, "."); (returns .zip)
$slash = strrchr($filelocation, "/"); (returns /file.zip)
how would I get just "/file" ?
Thanks
$slash = strrchr($filelocation, "/");
$slash = explode(".", $slash);
echo $slash[0]; //prints "/file"
thanks alot!