mkdir help needed to make a auto movie name directory.
Started on the old forum in July 2012 · view the original in the archive · old links redirect here
PranaY4U wrote: Here is file i want 2 make a auto dir of movie name.
Added after 3 minutes:
I want to make a dir of
$movieBut How to use files/movie_name/song.mp3 my "files" dir is allready exist
edited with what u need..
Attachments:
index.zip
swtsanjay wrote: edited with what u need..
Yes Working 100% Thanx For Help..
One More Help Needed...
Added after 3 minutes:
use dat code n make new1 pls replace old code n put dat pls pls....
if(!$page=="")
{
$songs = extract_songs($file);
foreach($songs as $song => $name){
$song_url = extract_song_url($song);
$song_url=str_replace(" ","%20",$song_url);
if($copy_to_server)
{
$song_name = basename($name);
$song_name = $dir.$song_name."(tikuwapi.x10.bz).mp3";
if(!is_file($song_name))
{
$iscopied = copy($song_url,$song_name);
if($iscopied)
{
if($processtags)
{
process_tags($song_name,$data);
}
}
}
$file= preg_replace("|<a href=\"http:\/\/link1.songspk.pk(.*?)$name<\/a>|is","<a href=\"$song_name\">$name</a>",$file);
$file= preg_replace("|http:\/\/link.songspk.pk/(.*?)$name<\/a>|is","$song_name\">$name</a>",$file);
}
}
}