Re: [PHP] Simple Example of Passing on a file through a PHP script

2002-07-03 Thread 1LT John W. Holmes
> $fd = fopen($filename,'r'); > fpassthru($fd); or readfile($filename); Saves you an fopen call, same result... ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Simple Example of Passing on a file through a PHP script

2002-07-03 Thread joakim . andersson
Hi, Store all files in a 'secret' folder, preferably outside the www-root. Store filename, size, type, date, whatever in your dB. To link to a file, use something like this MyDoc.pdf Then in download.php you update your stats table with the relevant info and then send the file to the user. | do