coolabhi
03-01-2009, 03:39 PM
Hello can anyone tell me how to print upper folder in PHP from the file which is located in sub folder..
eg: public_html / mysite / music / new / index.php
$home = 'http://mysite.com/';
$current_folder = basename(dirname(__FILE__));
echo '<a href="'.$home.'">Home</a> / <a href="'.$home.$current_folder.'">'.$current_folder.'</a><br/>';
In this code I can link to currennt folder 'new' but how do I link 'music' folder in this script..
Pls Help... :( Tnx n advance :)
eg: public_html / mysite / music / new / index.php
$home = 'http://mysite.com/';
$current_folder = basename(dirname(__FILE__));
echo '<a href="'.$home.'">Home</a> / <a href="'.$home.$current_folder.'">'.$current_folder.'</a><br/>';
In this code I can link to currennt folder 'new' but how do I link 'music' folder in this script..
Pls Help... :( Tnx n advance :)