> $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
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
2 matches
Mail list logo