[PHP] Re: PHP Download Of Application Question?

2011-10-09 Thread Alex McLain
I am looking for a way to download a C based application binary, from an Apache / PHP server, via a client side Web Browser, and execute it seamlessly on the client side PC without storing it permanently on the client side hard disk drive. Temporary storage would be ok. I know this

[PHP] PHP Download Of Application Question?

2011-10-08 Thread Thomas Dineen
Gentle People: I am looking for a way to download a C based application binary, from an Apache / PHP server, via a client side Web Browser, and execute it seamlessly on the client side PC without storing it permanently on the client side hard disk drive. Temporary storage would be ok.

Re: [PHP] PHP Download Of Application Question?

2011-10-08 Thread Sean Greenslade
On Sat, Oct 8, 2011 at 6:53 PM, Thomas Dineen tdin...@ix.netcom.com wrote: Gentle People: I am looking for a way to download a C based application binary, from an Apache / PHP server, via a client side Web Browser, and execute it seamlessly on the client side PC without storing it

Re: [PHP] PHP download page blocking other HTTP requests

2011-06-07 Thread Pete Ford
On 06/06/11 21:07, Richard Quadling wrote: On 6 June 2011 13:55, Pete Fordp...@justcroft.com wrote: Is there something on the Apache/PHP end that might be causing this blocking? (Apache 2.2.10, PHP 5.2.14) The browser and / or OS may be obeying the settings about the number of simultaneous

Re: [PHP] PHP download page blocking other HTTP requests

2011-06-07 Thread Richard Quadling
On 7 June 2011 09:24, Pete Ford p...@justcroft.com wrote: On 06/06/11 21:07, Richard Quadling wrote: On 6 June 2011 13:55, Pete Fordp...@justcroft.com  wrote: Is there something on the Apache/PHP end that might be causing this blocking? (Apache 2.2.10, PHP 5.2.14) The browser and / or OS

[PHP] PHP download page blocking other HTTP requests

2011-06-06 Thread Pete Ford
I have a file download 'guardian' page which does something like this: $size = filesize($path); $fi = @finfo_file($path, FILEINFO_MIME_TYPE); @header('Content-type: ' . $fi); @header('Content-Length: ' . $size); @readfile($path); exit; ($path is derived from parameters in the request, including

Re: [PHP] PHP download page blocking other HTTP requests

2011-06-06 Thread Richard Quadling
On 6 June 2011 13:55, Pete Ford p...@justcroft.com wrote: Is there something on the Apache/PHP end that might be causing this blocking? (Apache 2.2.10, PHP 5.2.14) The browser and / or OS may be obeying the settings about the number of simultaneous connections per host.

[PHP] Download and Install 64bit php into 64bit Windows

2009-12-01 Thread Edward S.P. Leung
Dear All, Where can we download the 64bit php package for running on 64bit Windows platform ? Thanks ! Edward. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Download Wrapper

2009-10-07 Thread Michael A. Peters
I'm using flowplay (flash) for embedded audio/video. Initially I was using html5 w/ flowplay as fall back, but I stopped because flowplay is better than html5 on browsers that support html5. Anyway - I also am making direct links to the media available as mp4/ogm and mp3/ogg. The problem is

[PHP] download file from an ajax request

2008-06-20 Thread pere roca
hi everybody! Hi! is there some way to allow downloading a PHP generated file from an ajax request? the simple code below generates the image but not prompts the save or open file... (it works if I call it directly, not from an HTML and using ajax...) thanks, Pere $layer=$_GET['params'];

Re: [PHP] download file from an ajax request

2008-06-20 Thread Iv Ray
pere roca wrote: hi everybody! Hi! is there some way to allow downloading a PHP generated file from an ajax request? No idea, but would love to hear if/how you solved it. Iv -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] download file from an ajax request

2008-06-20 Thread Eric Butera
On Fri, Jun 20, 2008 at 8:02 AM, pere roca [EMAIL PROTECTED] wrote: hi everybody! Hi! is there some way to allow downloading a PHP generated file from an ajax request? the simple code below generates the image but not prompts the save or open file... (it works if I call it directly, not

Re: [PHP] download file from an ajax request

2008-06-20 Thread Iv Ray
have with any of the above. Well, if we, the illiterate, are going to brainstorm ;) - clicking a link/button/image executes JavaScript function, which (via AJAX request) hits the php download script. The response will be received by the AJAX object. Nothing php here. As far as I see the problem

Re: [PHP] download file from an ajax request

2008-06-20 Thread pere roca ristol
JavaScript function, which (via AJAX request) hits the php download script. The response will be received by the AJAX object. Nothing php here. As far as I see the problem, it is - how to pass this response to the browser in an elegant way, so that the browser will open a Save as... dialogue

Re: [PHP] download file from an ajax request

2008-06-20 Thread Eric Butera
attempted it myself so I'm not sure what sort of issues IE would have with any of the above. Well, if we, the illiterate, are going to brainstorm ;) - clicking a link/button/image executes JavaScript function, which (via AJAX request) hits the php download script. The response will be received

Re: [PHP] download file from an ajax request

2008-06-20 Thread Nitsan Bin-Nun
, which (via AJAX request) hits the php download script. The response will be received by the AJAX object. Nothing php here. As far as I see the problem, it is - how to pass this response to the browser in an elegant way, so that the browser will open a Save as... dialogue and will direct

Re: [PHP] download file from an ajax request

2008-06-20 Thread Daniel Brown
On Fri, Jun 20, 2008 at 8:02 AM, pere roca [EMAIL PROTECTED] wrote: [snip!] imagepng($image,'definitius_hola.png'); Here you call it 'definitius_hola.png' $h = fopen(definitius.png, r); header(Content-Type: image/png); header(Content-Disposition: attachment;

Re: [PHP] download file from an ajax request

2008-06-20 Thread Daniel Brown
On Fri, Jun 20, 2008 at 12:59 PM, Daniel Brown [EMAIL PROTECTED] wrote: Once you get your download script fixed, try adding these lines to your page: iframe height=0 width=0 name=dl id=dl frameborder=0/iframe a href=img.php target=dlClick to Download/a And just replace img.php with

Re: [PHP] download file from an ajax request

2008-06-20 Thread tedd
At 1:00 PM -0400 6/20/08, Daniel Brown wrote: On Fri, Jun 20, 2008 at 12:59 PM, Daniel Brown [EMAIL PROTECTED] wrote: Once you get your download script fixed, try adding these lines to your page: iframe height=0 width=0 name=dl id=dl frameborder=0/iframe a href=img.php target=dlClick

Re: [PHP] download file from an ajax request

2008-06-20 Thread Daniel Brown
On Fri, Jun 20, 2008 at 2:21 PM, tedd [EMAIL PROTECTED] wrote: Oh, so now you tell us. :-) Hey, back off! You knew I was a horrible person long before this thread! ;-P -- /Daniel P. Brown Dedicated Servers - Intel 2.4GHz w/2TB bandwidth/mo. starting at just $59.99/mo. with no contract!

[PHP] Download and Upload of Files

2007-10-09 Thread Rodolfo De Nadai
Hi there guys i developed an app that uses AJAX, ActiveX objects and PHP to download and upload files from local machine to the server... everything works great, i can transfer office files and even exe files. The problem i'm face is to transfer mp3 files and pdf files... anybody already

Re: [PHP] Download speed limit

2007-05-18 Thread clive
Sent: Thursday, May 17, 2007 6:55 PM Subject: Re: [PHP] Download speed limit On 5/17/07, Rangel Reale [EMAIL PROTECTED] wrote: Hmm that apache module isn't quite what I need, it just accepts or refuse connections based on bandwidth usage, it does not throttle the connection. Have you tried

Re: [PHP] Download speed limit

2007-05-17 Thread Ovidiu Rosoiu
: [PHP] Download speed limit Rangel Reale wrote: Hello! For my application I need to limit the speed that my application sends data, in my case a binary file. I need to send the speed as a parameter, like: sendfile.php?speed=2 Would send the file at 20kb/s (forgetting about real byte

Re: [PHP] Download speed limit

2007-05-17 Thread Rangel Reale
Reale [EMAIL PROTECTED] Cc: php-general@lists.php.net Sent: Friday, May 18, 2007 2:34 PM Subject: Re: [PHP] Download speed limit limiting speed by using sleep in your script is a very bad idea. for a 350 MB file, with a 20 KB/s limit the script would take aprox. 5 hours. you can see how

Re: [PHP] Download speed limit

2007-05-17 Thread Rangel Reale
: Thursday, May 17, 2007 6:10 PM Subject: Re: [PHP] Download speed limit Yes, it seems to be bad thing, but this limit is because the big files are non-critical, but I can't let them hammer the customer's connection, using all the bandwidth. The internet connection is slow (500kbps ADSL), and they have

Re: [PHP] Download speed limit

2007-05-17 Thread Greg Donald
On 5/17/07, Rangel Reale [EMAIL PROTECTED] wrote: Hmm that apache module isn't quite what I need, it just accepts or refuse connections based on bandwidth usage, it does not throttle the connection. Have you tried something like this? ?php $file = '/opt/local/apache2/htdocs/test_file.txt';

Re: [PHP] Download speed limit

2007-05-17 Thread Rangel Reale
[EMAIL PROTECTED] To: php-general@lists.php.net Sent: Thursday, May 17, 2007 6:55 PM Subject: Re: [PHP] Download speed limit On 5/17/07, Rangel Reale [EMAIL PROTECTED] wrote: Hmm that apache module isn't quite what I need, it just accepts or refuse connections based on bandwidth usage, it does

Re: [PHP] Download speed limit

2007-05-17 Thread Chris
Rangel Reale wrote: Yes, I tried, this works, but I would like to control the send speed more, preferably via URL, as this programs will only be accessed by my desktop application, and I have full control of them. But, if there is no other way, this will be the way! Use the url parameter to

[PHP] Download speed limit

2007-05-16 Thread Rangel Reale
Hello! For my application I need to limit the speed that my application sends data, in my case a binary file. I need to send the speed as a parameter, like: sendfile.php?speed=2 Would send the file at 20kb/s (forgetting about real byte counts for this example). To send the file, I am

Re: [PHP] Download speed limit

2007-05-16 Thread Jim Lucas
Rangel Reale wrote: Hello! For my application I need to limit the speed that my application sends data, in my case a binary file. I need to send the speed as a parameter, like: sendfile.php?speed=2 Would send the file at 20kb/s (forgetting about real byte counts for this example). To

Re: [PHP] Download speed limit

2007-05-16 Thread Rangel Reale
Between 90 and 350 MB. - Original Message - From: Jim Lucas [EMAIL PROTECTED] To: Rangel Reale [EMAIL PROTECTED] Cc: php-general@lists.php.net Sent: Wednesday, May 16, 2007 6:41 PM Subject: Re: [PHP] Download speed limit Rangel Reale wrote: Hello! For my application I need

Re: [PHP] Download multiple sound files?

2007-04-13 Thread Jochem Maas
Richard Lynch wrote: On Thu, April 12, 2007 11:15 am, Skip Evans wrote: I have a need to allow a user to download multiple sound files (mp3s, typically) from a single link. I've been looking at various solutions via Google, but have not seen one yet to do this. Can anyone point me in the

Re: [PHP] Download multiple sound files?

2007-04-13 Thread Richard Lynch
On Fri, April 13, 2007 6:09 am, Jochem Maas wrote: Richard Lynch wrote: On Thu, April 12, 2007 11:15 am, Skip Evans wrote: I have a need to allow a user to download multiple sound files (mp3s, typically) from a single link. I've been looking at various solutions via Google, but have not seen

[PHP] Download multiple sound files?

2007-04-12 Thread Skip Evans
Hey all, I have a need to allow a user to download multiple sound files (mp3s, typically) from a single link. I've been looking at various solutions via Google, but have not seen one yet to do this. Can anyone point me in the right direction or give me a lead on how this can be done?

Re: [PHP] Download multiple sound files?

2007-04-12 Thread Stut
Skip Evans wrote: I have a need to allow a user to download multiple sound files (mp3s, typically) from a single link. I've been looking at various solutions via Google, but have not seen one yet to do this. Can anyone point me in the right direction or give me a lead on how this can be

Re: [PHP] Download multiple sound files?

2007-04-12 Thread Skip Evans
Hey, Right, there is that, but I know the client is going to want the mp3s to land on the client's machine in individual mp3 files. Is there a way to link to the second, etc, next file in line after beginning the first? I can't think of a way to do this. Skip Stut wrote: Skip Evans

Re: [PHP] Download multiple sound files?

2007-04-12 Thread Jochem Maas
Skip Evans wrote: Hey all, I have a need to allow a user to download multiple sound files (mp3s, typically) from a single link. I've been looking at various solutions via Google, but have not seen one yet to do this. Can anyone point me in the right direction or give me a lead on how this

Re: [PHP] Download multiple sound files?

2007-04-12 Thread tg-php
Stut beat me to it... downloading multiple files at once is probably best done with compressing them and just downloading the one file. You could possibly rig a situation where the user downloaded one file, then a certain number of seconds later, the page redirects to the next file to

Re: [PHP] Download multiple sound files?

2007-04-12 Thread Skip Evans
Hey all, Thanks for the good suggestions. I think Stut and TG here are on the right track with a zip file kind of thing. They should be able to handle that and the php/zip stuff looks good to. Much thanks! Skip [EMAIL PROTECTED] wrote: Stut beat me to it... downloading multiple files

RE: [PHP] Download multiple sound files?

2007-04-12 Thread Jim Moseby
= = = Original message = = = Hey all, I have a need to allow a user to download multiple sound files (mp3s, typically) from a single link. I've been looking at various solutions via Google, but have not seen one yet to do this. Can anyone point me in the right direction or give

Re: [PHP] Download multiple sound files?

2007-04-12 Thread Richard Davey
Jim Moseby wrote: I remember, way back when, transferring multiple files was simple. The good ole days of ZModem. Maybe todays technology will catch up eventually. ;^) I doubt it :) Things were so much more optimised back then! I remember packaging all my mail up into QWK bundles,

Re: [PHP] Download multiple sound files?

2007-04-12 Thread tg-php
Does this mean we need to start lobbying against connectionless protocols like HTTP so we can better download multiple files? hah And POP3 probably existed long before the old BBS', so it's not that things got LESS efficient, it's just that we didn't NEED to bundle bunches of emails together

Re: [PHP] Download multiple sound files?

2007-04-12 Thread Stut
Skip Evans wrote: Right, there is that, but I know the client is going to want the mp3s to land on the client's machine in individual mp3 files. Is there a way to link to the second, etc, next file in line after beginning the first? I can't think of a way to do this. Sort of. You could

Re: [PHP] Download multiple sound files?

2007-04-12 Thread Richard Lynch
On Thu, April 12, 2007 11:15 am, Skip Evans wrote: I have a need to allow a user to download multiple sound files (mp3s, typically) from a single link. I've been looking at various solutions via Google, but have not seen one yet to do this. Can anyone point me in the right direction or give

Re: [PHP] Download multiple sound files?

2007-04-12 Thread Richard Davey
[EMAIL PROTECTED] wrote: And POP3 probably existed long before the old BBS', so it's not that things got LESS efficient, it's just that we didn't NEED to bundle bunches of emails together into a single file because of crappy dialup connections and crappy modems and the necessity of keeping

Re: [PHP] Download multiple sound files?

2007-04-12 Thread Richard Lynch
On Thu, April 12, 2007 6:39 pm, Richard Davey wrote: The protocol, while fine for most things, is not efficient. There is no way to batch-up messages for quicker transfer. Even today with our 'super fast' connections if you go on holiday for two weeks (and DON'T check email while away!), then

[PHP] Download tracker/counter

2007-03-22 Thread Robert Wolfe
Hi all! This is my first posting to the PHP-General mailing list so please bear with me J I have a couple of files that I would like to allow folks to download via a php script that acts as a download tracker and counter. Basically I want to: 1) Allow the downloads of said files.

Re: [PHP] Download adds ^M to beginning of file

2006-12-15 Thread Richard Lynch
On Tue, December 12, 2006 9:12 am, [EMAIL PROTECTED] wrote: Based on your subject line, I'd suggest looking for an included PHP script that has a stray newline (a Windows newline, actually) before the ?php or after the ? Using the below code to force download works fine on most servers and

Re: [PHP] Download adds ^M to beginning of file

2006-12-15 Thread Richard Lynch
On Tue, December 12, 2006 9:27 am, Jochem Maas wrote: Using the below code to force download works fine on most servers and with most browsers. However it does crash Firefox when I download a specific file, IE works like beauty. File content starts with: #!/sbin/_joor_perl_use

[PHP] Download adds ^M to beginning of file

2006-12-12 Thread lists
Hi, Using the below code to force download works fine on most servers and with most browsers. However it does crash Firefox when I download a specific file, IE works like beauty. File content starts with: #!/sbin/_joor_perl_use Filter::decrypt.. This is the code to force the download:

Re: [PHP] Download adds ^M to beginning of file

2006-12-12 Thread Jochem Maas
[EMAIL PROTECTED] wrote: Hi, Using the below code to force download works fine on most servers and with most browsers. However it does crash Firefox when I download a specific file, IE works like beauty. File content starts with: #!/sbin/_joor_perl_use Filter::decrypt.. This

Re: [PHP] Download files outside DocumentRoot Dir

2006-09-27 Thread Christopher Weldon
Richard Lynch wrote: On Mon, September 25, 2006 3:57 pm, Christopher Weldon wrote: On 2:36 pm 09/25/06 Ramiro Cavalcanti [EMAIL PROTECTED] wrote: Hi Christopher, at first, thank you for your answer. I'd like to know if it's possible use this when php is running like cgi (php-suexec). I've

Re: [PHP] Download files outside DocumentRoot Dir

2006-09-26 Thread Richard Lynch
On Sun, September 24, 2006 11:44 pm, Ramiro wrote: i'm trying to find a good solution to this problem. I want download files from a directory outside DocumentRoot. This files cannot be downloaded through direct url like http://site/test.zip. It must be downloaded after user login. I know i

Re: [PHP] Download files outside DocumentRoot Dir

2006-09-26 Thread Richard Lynch
On Mon, September 25, 2006 7:52 am, Miles Thompson wrote: $filenam = $_REQUEST[filenam]; if ($filenam){ $contents = file_get_contents( ../above_root/ . $filenam ); echo $contents; }else{ echo Not found;

Re: [PHP] Download files outside DocumentRoot Dir

2006-09-26 Thread Richard Lynch
On Mon, September 25, 2006 3:57 pm, Christopher Weldon wrote: On 2:36 pm 09/25/06 Ramiro Cavalcanti [EMAIL PROTECTED] wrote: Hi Christopher, at first, thank you for your answer. I'd like to know if it's possible use this when php is running like cgi (php-suexec). I've put this code at

Re: [PHP] Download files outside DocumentRoot Dir

2006-09-26 Thread Curt Zirzow
On 9/24/06, Ramiro [EMAIL PROTECTED] wrote: Hi, i'm trying to find a good solution to this problem. I want download files from a directory outside DocumentRoot. This is a standard procedure. This files cannot be downloaded through direct url like http://site/test.zip. It must be downloaded

Re: [PHP] Download files outside DocumentRoot Dir

2006-09-26 Thread Richard Lynch
On Tue, September 26, 2006 6:29 pm, Curt Zirzow wrote: This files cannot be downloaded through direct url like http://site/test.zip. It must be downloaded after user login. This will need some sort of rewrite or 404 handling on the webserver level Au contraire, my good friend.

Re: [PHP] Download files outside DocumentRoot Dir

2006-09-25 Thread Miles Thompson
At 01:44 AM 9/25/2006, Ramiro wrote: Hi, i'm trying to find a good solution to this problem. I want download files from a directory outside DocumentRoot. This files cannot be downloaded through direct url like http://site/test.zip. It must be downloaded after user login. I know i can do that

Re: [PHP] Download files outside DocumentRoot Dir

2006-09-25 Thread Christopher Weldon
Ramiro wrote: Hi, i'm trying to find a good solution to this problem. I want download files from a directory outside DocumentRoot. This files cannot be downloaded through direct url like http://site/test.zip. It must be downloaded after user login. I know i can do that using some functions

Re: [PHP] Download files outside DocumentRoot Dir

2006-09-25 Thread Christopher Weldon
On 2:36 pm 09/25/06 Ramiro Cavalcanti [EMAIL PROTECTED] wrote: Hi Christopher, at first, thank you for your answer. I'd like to know if it's possible use this when php is running like cgi (php-suexec). I've put this code at httpd.conf at module php, then tryed to use it at .htaccess, but

[PHP] Download files outside DocumentRoot Dir

2006-09-24 Thread Ramiro
Hi, i'm trying to find a good solution to this problem. I want download files from a directory outside DocumentRoot. This files cannot be downloaded through direct url like http://site/test.zip. It must be downloaded after user login. I know i can do that using some functions like fread() +

[PHP] Download image in PHP

2006-04-05 Thread Russell Jones
I have an image library on one site that I want to be able to access from another, but I actually want the image downloaded and cached to the new site (so that it doesnt keep taxing the image server). I allow the file() command to pull from other sites, can I do this with just the

Re: [PHP] Download image in PHP

2006-04-05 Thread mbneto
Hi, If all you want to do is this as a suggestion (altough not php related) you could call wget from your php script to fetch this image without having to worry with other things. Something like this exec ('/path/to/wget http://www.foo.com/bar.jpg'); Of course you'd have to check if everything

Re: [PHP] Download image in PHP

2006-04-05 Thread Joe Henry
On Wednesday 05 April 2006 7:16 am, mbneto wrote: Hi, If all you want to do is this as a suggestion (altough not php related) you could call wget from your php script to fetch this image without having to worry with other things. Something like this exec ('/path/to/wget

Re: [PHP] Download image in PHP

2006-04-05 Thread Jochem Maas
Russell Jones wrote: I have an image library on one site that I want to be able to access from another, but I actually want the image downloaded and cached to the new site (so that it doesnt keep taxing the image server). I allow the file() command to pull from other sites, can I do this with

[PHP] Download problems

2006-03-29 Thread bsnottum
-- Opprinnelig melding --- Emne: Download problems Fra: [EMAIL PROTECTED] Dato: ons 29. mars 2006 9:53 Til: php-general-digest@lists.php.net -- Hallo! I am running

Re: [PHP] Download problems

2006-03-29 Thread Curt Zirzow
On Wed, Mar 29, 2006 at 05:16:54PM +0200, [EMAIL PROTECTED] wrote: -- Opprinnelig melding --- Emne: Download problems Fra: [EMAIL PROTECTED] Dato: ons 29. mars 2006 9:53 Til: php-general-digest@lists.php.net

Re: [PHP] download not working

2005-12-30 Thread Richard Lynch
On Wed, December 28, 2005 6:10 am, Ross wrote: $query= SELECT * FROM publications WHERE alphabet='a'; $result= mysql_query($query); while ($row = @mysql_fetch_array($result, MYSQL_ASSOC)){ $row['pdf_size'] = $row['pdf_size']/ 1024; $row['pdf_size']= number_format($row['pdf_size'],

[PHP] download not working

2005-12-28 Thread Ross
working form this example http://www.php-mysql-tutorial.com/php-mysql-upload.php my code is as follows, all I get is a corrupt pdf file. $query= SELECT * FROM publications WHERE alphabet='a'; $result= mysql_query($query); while ($row = @mysql_fetch_array($result, MYSQL_ASSOC)){

Re: [PHP] download not working

2005-12-28 Thread Jochem Maas
are people supposed to smell what is not working? do you get any errors? is it possible the PDF was corrupt when you uploaded it? Ross wrote: working form this example http://www.php-mysql-tutorial.com/php-mysql-upload.php my code is as follows, all I get is a corrupt pdf file. $query=

Re: [PHP] download not working

2005-12-28 Thread Ross
The pdf is fine, there are no errors . All I get is a small (130byte) pdf file which is corrupt when I try and open it. Thanks, R. Jochem Maas [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] are people supposed to smell what is not working? do you get any errors? is it possible

RE: [PHP] download not working

2005-12-28 Thread Albert
Ross wrote: The pdf is fine, there are no errors . All I get is a small (130byte) pdf file which is corrupt when I try and open it. From the code I gather you are saving the uploaded file in the database. 1 - What field type are you using for this? 2 - Are you using some form of encoding (eg

RE: [PHP] download not working

2005-12-28 Thread Albert
Ross wrote: $query= SELECT * FROM publications WHERE alphabet='a'; $result= mysql_query($query); while ($row = @mysql_fetch_array($result, MYSQL_ASSOC)){ $row['pdf_size'] = $row['pdf_size']/ 1024; $row['pdf_size']= number_format($row['pdf_size'], 0); $size= $row['pdf_size'];

Re: [PHP] download not working

2005-12-28 Thread Curt Zirzow
On Wed, Dec 28, 2005 at 01:03:55PM -, Ross wrote: The pdf is fine, there are no errors . All I get is a small (130byte) pdf file which is corrupt when I try and open it. Open the file in notepad and look at the 130 bytes, it probably will give you a clue. Thanks, R. Jochem Maas

[PHP] download snippet

2005-08-09 Thread Roger Thomas
Am looking for code snippet to download file. It should be able to detect mime-types. Thanks. -- Roger --- Sign Up for free Email at http://ureg.home.net.my/ --- -- PHP General Mailing List

Re: [PHP] download snippet

2005-08-09 Thread Burhan Khalid
Roger Thomas wrote: Am looking for code snippet to download file. It should be able to detect mime-types. Thanks. http://www.php.net/manual/en/function.header.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Download Link !

2005-03-25 Thread [EMAIL PROTECTED]
Hello, When I purchased a website template from templatemonster.com, they sent the download link to my email, this link was active for only 2 or 3 days then it became inactive. Now I'm writing a script for selling website templates, the templates are uploaded to a certain folder, when someone

[PHP] Download Link !

2005-03-25 Thread Ken
On Fri, 25 Mar 2005 11:25:09 -0800, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hello, When I purchased a website template from templatemonster.com, they sent the download link to my email, this link was active for only 2 or 3 days then it became inactive. Now I'm writing a script for

Re: [PHP] Download Link !

2005-03-25 Thread maillists
On Friday 25 March 2005 14:25, [EMAIL PROTECTED] wrote: Hello, When I purchased a website template from templatemonster.com, they sent the download link to my email, this link was active for only 2 or 3 days then it became inactive. Now I'm writing a script for selling website templates,

[PHP] Download system

2005-03-21 Thread JoShQuNe \(TR\)
Hi, i want to add my site a more specific download system. The redirecting is now done by directly giving the path of the file to variable. I want to do it over an id number. (now: dl.php?rel=/files/somefile.zip, i want: dl.php?id=64b3j283) The file path and id is read from mysql table. System

Re: [PHP] Download system

2005-03-21 Thread Richard Lynch
On Mon, March 21, 2005 3:45 pm, JoShQuNe \(TR\) said: Hi, i want to add my site a more specific download system. The redirecting is now done by directly giving the path of the file to variable. I want to do it over an id number. (now: dl.php?rel=/files/somefile.zip, i want:

Re: [PHP] Download system

2005-03-21 Thread JoShQuNe \(TR\)
--- Richard Lynch [EMAIL PROTECTED] wrote: On Mon, March 21, 2005 3:45 pm, JoShQuNe \(TR\) said: Hi, i want to add my site a more specific download system. The redirecting is now done by directly giving the path of the file to variable. I want to do it over an id number. (now:

Re: [PHP] Download system

2005-03-21 Thread Chris Bruce
How about setting up symbolic links on the server in a tmp directory. You could use the values from your database table to create the sym links. Have the sym link be the token name and then have it linked to the real file name. You could then have a cron job running to clear the sym links at

[PHP] download files with header

2005-03-17 Thread helene malamoud
I tryed the function that aarondunlap.com sent the 28 dec 2004. The browser open the window for download, I get the file on the client , same size as the original but when I want to open the file , it's corrupted. It's like if the script file is mixed with the file I sent (I tryed with IE and

[PHP] Download with header() - file corrupted

2005-03-02 Thread Werner Jäger
I try to download a file wit follow code: $len = filesize($file); $filename = basename($file); header(Pragma: public); header(Expires: 0); header(Cache-Control: must-revalidate, post-check=0, pre-check=0); header(Cache-Control: public); header(Content-Description: File

Re: [PHP] Download with header() - file corrupted

2005-03-02 Thread Richard Lynch
Werner Jäger wrote: I try to download a file wit follow code: $len = filesize($file); $filename = basename($file); header(Pragma: public); header(Expires: 0); header(Cache-Control: must-revalidate, post-check=0, pre-check=0); header(Cache-Control: public); Is it

[PHP] download pdf using php script

2004-09-16 Thread adwinwijaya
Hello PHP Users, I have files (that protected from direct download) and I put it outside public_html/ directory (outside web server directory). and the people from outside could access the file by typing: www.myweb.com/download.php?filename=xzy.pdf can someone give me hint how to do this ?

Re: [PHP] download pdf using php script

2004-09-16 Thread Tom Rogers
Hi, Thursday, September 16, 2004, 4:51:51 PM, you wrote: a Hello PHP Users, a I have files (that protected from direct download) and I put it a outside public_html/ directory (outside web server directory). a and the people from outside could access the file by typing: a

[PHP] Download installer not found [***SPAM***] **SPAM USA 64.246.30.37 BODY**

2004-08-28 Thread DevX
Hi, I click PHP 5.0.1 installer http://www.php.net/get/php-5.0.1-installer.exe/from/a/mirror link download at http://www.php.net/get/php-5.0.1-installer.exe/from/a/mirror . But i see download not found. Download not found This mirror site is improperly setup, and thus has no copy of the

[PHP] Download Script

2004-08-27 Thread Aaron Todd
I've created a download script that works quite nicely. The only issue with it is that when I download a file where the file name is like filename v1.0.2.1.exe there is some extra characters added into the name when it is downloaded. So that file will be filename v1[1].0.2.1.exe. I am

RE: [PHP] Download Script

2004-08-27 Thread Ivo Pletikosic
:[EMAIL PROTECTED] Sent: Friday, August 27, 2004 11:35 AM To: [EMAIL PROTECTED] Subject: [PHP] Download Script I've created a download script that works quite nicely. The only issue with it is that when I download a file where the file name is like filename v1.0.2.1.exe there is some

[PHP] download filesize problem with IE

2004-08-26 Thread Kevin Coyner
Not sure if this is just a problem with MS IE, or if there's something I need to set in my php.ini. I've got some large zip files sitting in a directory in my website for my clients to download (no these aren't programs for warez but images for the graphics industry). One of the zip files is

RE: [PHP] download filesize problem with IE

2004-08-26 Thread Jay Blanchard
[snip] I've got some large zip files sitting in a directory in my website for my clients to download (no these aren't programs for warez but images for the graphics industry). One of the zip files is 78 MB. When using MS IE6 and when I right click the link for that zip file to download it

Re: [PHP] download filesize problem with IE

2004-08-26 Thread John Holmes
From: Kevin Coyner [EMAIL PROTECTED] I've got some large zip files sitting in a directory in my website for my clients to download (no these aren't programs for warez but images for the graphics industry). One of the zip files is 78 MB. When using MS IE6 and when I right click the link for that

Re: [PHP] download filesize problem with IE

2004-08-26 Thread Markus Mayer
At the moment you're talking about two different things - uploading and downloading. Your IE download problem has nothing to do with the php.ini settings for uploaded file sizes. There is nothing you can do with PHP to resolve the download problem. I have experienced the same problems with

[PHP] download file question...

2004-08-19 Thread bruce
hi... i can allow files to be uploaded to my app. are there corresponding scripts/code to allow files to be downloaded to the user via the browser?? just occurred to me that i'll want to do this... nothing jumps out at me searching google/php.net for this... thanks -- PHP General Mailing

RE: [PHP] download file question...

2004-08-19 Thread Jay Blanchard
[snip] nothing jumps out at me searching google/php.net for this... [/snip] Have you searched the mailing list archives? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] download file question...

2004-08-19 Thread John Holmes
From: bruce [EMAIL PROTECTED] i can allow files to be uploaded to my app. are there corresponding scripts/code to allow files to be downloaded to the user via the browser?? How about a link to the file? If you want to get more complicated, search the archives for readfile and download...

Re: [PHP] download script

2004-08-11 Thread zareef ahmed
Hi, Following class may be usefull. http://www.phpclasses.org/browse/package/699.html One Advice :: Please check your script in another browsers too. some Buggy Browser may cause the problems. zareef ahmed --- Aaron Todd [EMAIL PROTECTED] wrote: I was going to post another follow-up

[PHP] download script

2004-08-10 Thread Aaron Todd
I was going to post another follow-up question in a pending thread here but it seems to have been deleted. Anyway, I am trying to write a download script that will downloaded files from my site. All these files need to be protected so just anybody cant come to the site and download them. I have

  1   2   >