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 Quote 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. Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.