Problems with PHP Download Timeout on Mobile -


sadly got problem php download script.
first of all, file called via variable.
script searches size, type , gives download.
on pc, using chrome, works charm.
when i'm trying download file on iphone using safari, loads pixels of picture, stops because network connection interrupted :/

if(file_exists($file_url) or @getimagesize($file_url))     { $size = $row['size'] * 1024; // dateigröße in byte umrechnen header("content-type: $type"); header('content-disposition: attachment; filename="'.$file.'"'); header("content-length: ". $size); header("content-transfer-encoding: binary"); //ob_clean(); ob_end_clean(); flush(); readfile($file_url); 

did wrong?

thanks in advance!


Comments

Popular posts from this blog

node.js - Using Node without global install -

How to access a php class file from PHPFox framework into javascript code written in simple HTML file? -

java - Null response to php query in android, even though php works properly -