Re: fopen/fpassthur

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

 






Sebastian wrote:
> Hi all,
> I have created a download manger to handle files, when a user clicks a
> link
> the file is sent though fopen() and fpassthru()
> like this:

fopen() + fpassthru() == http://php.net/readfile

> is this the most practical way of doing it? i don't want to display file
> location.. the script seems to be working okay, but i was just looking for
> opinions on the method. also, is it possible to insert a txt file on the
> fly
> if the file they're downloading is a ZIP file? if so, any ideas how?

Probably.

http://php.net/zlib should give you some ideas in that direction.

It would maybe be easier to start with all unzipped files, and zip them
with your text file when you send them out...

-- 
Like Music?
http://l-i-e.com/artists.htm

-- 
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