Posso utilizzare URL esterni in readfile()?Lettura file PHP() dell'URL esterno
header('Content-type: application/pdf');
header('Content-Transfer-Encoding: binary');
header('Content-Disposition: inline; filename="'.$file.'" ');
//header('Content-Length: ' . filesize("http:...z/pub/".$file.'.pdf'));
@readfile("http://...z/pub/".$file.'.pdf');
Provalo e/o [RTM] (http://php.net/readfile): "Un URL può essere utilizzato come nome file con questa funzione se i wrapper fopen sono stati abilitati." ;-) – netcoder
Devo fare 'exec ("wget $ url -O $ nomefile")'? – user583311