Jump to content

How can i set authorized download


takalota

Recommended Posts

You can do something like this:

 


header ('location: /path/to/file.php');

 

Or you could have the PHP script print the contents of a file. I did it once but don't remember how it's done.

 

[Edit] Printing the content of the file may not be a good idea. PHP will stop after a certain ammount of time (60 seconds I think). So if the file is very big, PHP may timeout.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.