Re: fpassthru failure with mozilla

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jordi Canals wrote:
On Tue, 12 Oct 2004 09:17:30 -0700, ApexEleven <blackliquid@xxxxxxxxx> wrote:


Why use fpassthru? I just use readfile, is there a difference?


The main difference is with fpassthru you never show to the user the exacr location of the file, so must use the script to download it.

In example, you can control hot-links from other sites, php access
control to the file, and so on. Also, you can put the file outside the
apache documents directory, so the file will never be reached in other
way: if you want the file, you have to use the script wich controls
the access to it.

I bet Apex11 meant readfile() php function.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux