i\'m doing an ajax request with a XMLHttpRequest in order to show the progress of the request. It\'s working great with an html file but evt.lengthComputable return false wi
Because php file are dynamic, you need to set a correct Content-Length header:
<? ob_start(); /* your code here */ $length = ob_get_length(); header('Content-Length: '.$length."\r\n"); header('Accept-Ranges: bytes'."\r\n"); ob_end_flush();