i didn't get my folder path
===

    $tempPHPSELF = explode("\\",dirname(__FILE__));
    array_pop($tempPHPSELF);
    array_pop($tempPHPSELF);

in first line i got path

 Array ( [0] => /media/wind/nits/Apache2/htdocs/products/campus_school/portal/parents ) 

but lost line array is empty,i am using linux server