ztealmax Posted June 22, 2007 Share Posted June 22, 2007 Now for an even more stupid question if it echos out searchpath/filename (.zip extension now removed using this code) Code: $filename = ereg_replace(".zip", "", "$filename"); Now if i would like to also remove the search path dir/ thats infront of the filename, how would i do that? //Cheers Link to comment https://forums.phpfreaks.com/topic/56744-remove-searchpath-from-echo-in-filename/ Share on other sites More sharing options...
snowman15 Posted June 22, 2007 Share Posted June 22, 2007 I may be wrong and maybe not even knowing what your asking about but.. If you just save every file in the same directory as the php script that uses them, you will be able to call it without having to write the path in front of it. Link to comment https://forums.phpfreaks.com/topic/56744-remove-searchpath-from-echo-in-filename/#findComment-280238 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.