pass through of file

Discussions of secure PHP coding. Security in software is important, so don't be afraid to ask. And when answering: be anal. Nitpick. No security vulnerability is too small.

Moderator: General Moderators

Post Reply
asgerhallas
Forum Commoner
Posts: 80
Joined: Tue Mar 14, 2006 11:11 am
Location: Århus, Denmark

pass through of file

Post by asgerhallas »

Hi,

Just read this thread:

viewtopic.php?t=37687&highlight=password+protection

In the last post feyd mentions that the best way to do it is through a file handler that can pass the file through, what would be the best way to that? And what does it mean to performance?

EDIT:
I think readfile() seems like an obvious choise, I just want to know if there's a better way or what it means to performance...

/Asger
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

readfile() is what I was referring to.
asgerhallas
Forum Commoner
Posts: 80
Joined: Tue Mar 14, 2006 11:11 am
Location: Århus, Denmark

Post by asgerhallas »

Ok thanks!
Post Reply