farsiscript 0 Report post Posted July 18, 2006 (edited) Hi alli write this code i want when you see download.php (this code) my file goes for download for usersorry my english is not very goodits a file database project for my university but when i browse this code my soruce file (.zip) echo in my page and dont goes for downloadmy next querstion about safe modei saw (php.net and zend) when safemode is on file databaseing and header() is not working . is it true ? if is it true i save my file at hosting and no (database) i want write standard script .plz help methanks more and more include("config.php");$kind = "id";$result = mysql_query("SELECT * FROM file WHERE $kind LIKE '$id'");while($r=mysql_fetch_array($result)){$software=$r["software"];$how=$r["how"];$text=$r["text"];$subject=$r["subject"];$size=$r["size"];$type=$r["type"];$name=$r["name"];$cat=$r["cat"];$content=$r["content"];}header("Content-length: $size");header("Content-type: $type");header("Content-Disposition: attachment; filename=$name.zip");echo $Content Edited July 18, 2006 by farsiscript (see edit history) Share this post Link to post Share on other sites
farsiscript 0 Report post Posted July 23, 2006 Hino body love me plz tell me header() problemi think header is problem , Share this post Link to post Share on other sites