certamente
codice:<!doctype html public "-//w3c//dtd html 4.0 transitional//en"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"> <meta name="generator" content="PHP Studio"> <title>untitled</title> </head> <body> <?php //creo la connesione $link = mysql_connect('localhost','root',''); if (!$link) { die('Non posso connettermi a MySQL: ' . mysql_error()); } echo 'Connection OK'; //seleziono il database mysql_select_db("archivio") or die ("non trovo il DB"); $query = mysql_query("select nomef,tipo,size,dati from utenti where nomef = 'nomepdf.pdf'"); $row = mysql_fetch_assoc($query); $bytes = $row[dati]; header('Content-Type: application/pdf'); header('Content-Transfer-Encoding: binary'); header('Content-disposition: inline; filename="prova.pdf"'); read($bytes); mysql_close($link); ?> </body> </html>

Rispondi quotando