function topDirectory($totalDirectory){
for ( $i=1 ; $i <= $totalDirectory ; $i++ )
{
echo '../';
}
}Kullanımı;Not : Görselin Beş Üst Dizinde Olduğunu Varsayıyorum
<img src="<?php echo topDirectory(5); ?>/gorsel.jpg">Hayırlı Günler...
0
●165
function topDirectory($totalDirectory){
for ( $i=1 ; $i <= $totalDirectory ; $i++ )
{
echo '../';
}
}Kullanımı;<img src="<?php echo topDirectory(5); ?>/gorsel.jpg">Hayırlı Günler...