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

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

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

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

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

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

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

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 a

[PHP] File downloads

2006-06-07 Thread kartikay malhotra
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. The client can thus download the file at any time.

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. The

[PHP] file downloads using header problem

2004-02-09 Thread Joshua Minnie
I am trying to force a file download using headers. The problem is not forcing the download. That is working fine, but if the user wants to click on another download while the first one is still downloading it won't let the user do it. Here is the code that I'm using, adapted from

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... ?php mysql_connect(localhost,user,pass); ... or error_log(0, Could not connect to database in .

[PHP] file downloads

2001-08-04 Thread Data Driven Design
Why does this code produce a page cannot be displayed error? ?php mysql_connect(localhost,username,password); mysql_select_db(database); $query = SELECT file_path from photos where photos_id=$photos_id; $result = @mysql_query($query); $row = mysql_fetch_row($result); $path = $row[0];

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. ?php mysql_connect(localhost,username,password); mysql_select_db(database); $query = SELECT file_path from photos where

Re: [PHP] file downloads

2001-08-04 Thread Data Driven Design
: 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 Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list

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 img src=\$path\; 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

Re: [PHP] file downloads

2001-08-04 Thread Data Driven Design
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 sure of the query because print img src=\$path\; Will display the image I'm trying to download. How does

Re: [PHP] file downloads

2001-08-04 Thread I_UNION
= - 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(mysql_error()) and make it work before I put