Jump to content

remove searchpath from echo in filename


ztealmax

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.