File Downloads

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

If a user is is downloading a file from the server via a php
link...there are 2 ways I can do it..

1. Create a symlink to the file and .. redirect user to it and delete
the symlink later


2. Just send appropriate headers to the browser and read the file to

I was wondering which of these 2 approaches will take more resources.
Is there a way to benchmark this?


Site Timeline