am trying get size of a file by passing the file bath from javascript to an php file then return the result , problem is javascript passing file bath as the following ex, c:\fakepath\NAME OF THE FILE , so the php file getting an wrong path so always returning an false !!!
 $(document).ready(function (){
        $("#file").click(function (){
            fileBath=$("#name").val();
                $.get('newfile2.php','fileBath='+fileBath,function(data){
                alert(data);
                    });
            });
});
php file
getmax($_GET['fileBath']);
function getmax($fileBath){
    $value=filesize($fileBath);
    echo  $value;
}
as i said the return value FALSE in php file because file bath is wrong !!
 
     
     
     
     
    