Re: [PHP] File Downloads

2010-05-29 Thread tedd
At 4:41 PM -0500 5/28/10, Karl DeSaulniers wrote: On May 28, 2010, at 4:25 PM, tedd wrote: At 3:39 PM -0500 5/28/10, Karl DeSaulniers wrote: Hello, How can I go about restricting the number of downloads of a file on my server? For Eg: if I want a music track to only be able to be downloaded b

Re: [PHP] File Downloads

2010-05-28 Thread Karl DeSaulniers
The users will have gone through a registration and login to get to the downloads. The files will be served from MySQL and output to HTML of Flash. This is for a small project of limited edition audio or pictures or scripts, etc. Hens, "I'd like" to limit each user in the allotted 150 to be ab

Re: [PHP] File Downloads

2010-05-28 Thread Karl DeSaulniers
On May 28, 2010, at 4:25 PM, tedd wrote: At 3:39 PM -0500 5/28/10, Karl DeSaulniers wrote: Hello, How can I go about restricting the number of downloads of a file on my server? For Eg: if I want a music track to only be able to be downloaded by 150 people and thats it.. ever, how can I go

Re: [PHP] File Downloads

2010-05-28 Thread tedd
At 3:39 PM -0500 5/28/10, Karl DeSaulniers wrote: Hello, How can I go about restricting the number of downloads of a file on my server? For Eg: if I want a music track to only be able to be downloaded by 150 people and thats it.. ever, how can I go about doing this? Much obliged, Karl DeSauln

Re: [PHP] File Downloads

2010-05-28 Thread Karl DeSaulniers
On May 28, 2010, at 3:54 PM, Marc Guay wrote: How can I go about restricting the number of downloads of a file on my server? Something like this could be triggered every time and then you can do whatever you want once it hits 150... maybe have it send you an email notification or something..

Re: [PHP] File Downloads

2010-05-28 Thread Marc Guay
> How can I go about restricting the number of downloads of a file on my > server? Something like this could be triggered every time and then you can do whatever you want once it hits 150... maybe have it send you an email notification or something... http://www.stevedawson.com/article0007.php -

Re: [PHP] File downloads

2006-06-08 Thread tedd
At 7:47 AM + 6/8/06, kartikay malhotra wrote: >New problem: >Is there a way for the server to notify the client that a new file has >become available for download, provided the client was online in the past X >minutes? > >This could be done... kartikay: First, it's probably best if you start

Re: [PHP] File downloads

2006-06-08 Thread kartikay malhotra
Thanks to Tedd, Barry, George and others for help over "download file" problem. I'm going to receive an ACK if the file downloads correctly. In absence of such an ACK, a script would quitely remove the temporary files after a fixed interval of time. Temporary files have unique filenames. New pr

Re: [PHP] File downloads

2006-06-07 Thread tedd
At 8:42 AM + 6/7/06, kartikay malhotra wrote: >Dear All, > >I have a HTTP server + MySQL database. Everytime a file is requested for >download, my PHP script loads the content from the database into a temporary >file (on the server). I then pass a URL to the client, with a link to this >file. T

Re: [PHP] file downloads

2001-08-08 Thread Richard Lynch
View your Apache logs after doing these mods, just in case the database has died after your testing that worked: It's also good to have these lines stay in there so you can debug later... > mysql_connect("localhost","user","pass"); ... or error_log(0, "Could not connect to database in " . __F

Re: [PHP] file downloads

2001-08-04 Thread I_UNION
vance = - Original Message - From: "Data Driven Design" <[EMAIL PROTECTED]> To: "Rasmus Lerdorf" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Saturday, August 04, 2001 10:27 PM Subject: Re: [PHP] file downloads > I usually put or die(my

Re: [PHP] file downloads

2001-08-04 Thread Data Driven Design
;Rasmus Lerdorf" <[EMAIL PROTECTED]> To: "Data Driven Design" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Saturday, August 04, 2001 1:01 PM Subject: Re: [PHP] file downloads > > I made the changes you suggested and it's still a no go. I'm s

Re: [PHP] file downloads

2001-08-04 Thread Rasmus Lerdorf
> I made the changes you suggested and it's still a no go. I'm sure of the > query because > > print ""; > > Will display the image I'm trying to download. How does that make the SQL query valid? You didn't implement the mysql_query() error checking I suggested. That's likely what is causing yo

Re: [PHP] file downloads

2001-08-04 Thread Data Driven Design
rdorf" <[EMAIL PROTECTED]> To: "Data Driven Design" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Saturday, August 04, 2001 11:57 AM Subject: Re: [PHP] file downloads > > Why does this code produce a page cannot be displayed error? > -- PHP General Maili

Re: [PHP] file downloads

2001-08-04 Thread Rasmus Lerdorf
> Why does this code produce a page cannot be displayed error? Your query is probably wrong. Comment out the header stuff and add some error checking to your query. > mysql_connect("localhost","username","password"); > mysql_select_db("database"); > $query = "SELECT file_path from photos wh