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
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
--
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
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
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
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
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
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
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.
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
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
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 .
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];
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
: 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
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
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
=
- 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
18 matches
Mail list logo