takalota Posted September 30, 2008 Share Posted September 30, 2008 How can i set authorize download my file. like this http://server2.prox2008.net/ero/le003.avi Please let me know Link to comment https://forums.phpfreaks.com/topic/126506-how-can-i-set-authorized-download/ Share on other sites More sharing options...
jordanwb Posted September 30, 2008 Share Posted September 30, 2008 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. Link to comment https://forums.phpfreaks.com/topic/126506-how-can-i-set-authorized-download/#findComment-654236 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.