>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 t
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
--
Dedicated Servers - Intel 2.4GHz w/2TB bandwidth/mo. starting at just
$59.99/mo. with no contract!
Dedicated se
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:
Click to Download
And just replace img.php with the name of your script.
Sorr
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:
>
>
> Click to Download
>
>And just replace img.php with the name of your script.
Sorry, that should be:
Click to Download
--
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: attachmen
I believe that you don't even have to program it, try to use:
And include download headers on the php file - as far as i remember it
should popup a "save as" dialog.
Regards,
Nitsan
On 20/06/2008, pere roca ristol <[EMAIL PROTECTED]> wrote:
>
> yes Iv, surely this is a more js/Ajax issue... t
On Fri, Jun 20, 2008 at 8:47 AM, Iv Ray <[EMAIL PROTECTED]> wrote:
> Eric Butera wrote:
>>
>> The only thing I can think of is using JS to create some sort of
>> IFRAME, meta redirect, window.location, or a popup window, something
>> that will force the page to hit your download script directly. I
yes Iv, surely this is a more js/Ajax issue... this is the one who has to
do something with php answer.
sorry,
Pere
2008/6/20 Iv Ray <[EMAIL PROTECTED]>:
> Eric Butera wrote:
>
>> The only thing I can think of is using JS to create some sort of
>> IFRAME, meta redirect, window.location,
Eric Butera wrote:
The only thing I can think of is using JS to create some sort of
IFRAME, meta redirect, window.location, or a popup window, something
that will force the page to hit your download script directly. I've
never attempted it myself so I'm not sure what sort of issues IE would
have
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 dir
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
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 yo
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 wo
onald" <[EMAIL PROTECTED]>
To:
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 usag
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?
http://destiney.com/
--
PHP General Mailing List (http:/
gt;
Cc:
Sent: 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 sl
;[EMAIL PROTECTED]>
To: "Rangel Reale" <[EMAIL PROTECTED]>
Cc:
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. y
. See
http://www.topology.org/src/bwshare/README.html, maybe it will help you.
Rangel Reale wrote:
Between 90 and 350 MB.
- Original Message - From: "Jim Lucas" <[EMAIL PROTECTED]>
To: "Rangel Reale" <[EMAIL PROTECTED]>
Cc:
Sent: Wednesday, May 16, 200
Between 90 and 350 MB.
- Original Message -
From: "Jim Lucas" <[EMAIL PROTECTED]>
To: "Rangel Reale" <[EMAIL PROTECTED]>
Cc:
Sent: Wednesday, May 16, 2007 6:41 PM
Subject: Re: [PHP] Download speed limit
Rangel Reale wrote:
Hello!
For my applicatio
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 s
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
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
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!),
[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
trans
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
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 proba
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 in
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, download
> = = = 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
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 a
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
download
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 ho
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 wrot
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 done?
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
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
> Using the below code to force download works fine on most servers and
> with most
> browsers.
[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..
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
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.
$_SERVE
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
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
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
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
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 ,
> then tryed to use it at .htaccess, but with
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
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 u
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 ju
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 http://www
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
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
>
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
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.
>
> "Joche
> 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= $r
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 (
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 possib
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= "
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
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 templat
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 se
--- 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.
> > (no
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: dl.php?id=64b3
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: publ
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> www.myweb.com/downl
> I am
> wondering if this is my headers that are doing this, but I
> really dont know.
I think its an IE or Windows behavior and what causes it is the multiple
dots in the filename. I resorted to naming our downloads
"filename-v1_0_2_1.exe"
> -Original Message-
> From: Aaron Todd [mail
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 fi
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 tha
[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 (then
> 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 "downlo
[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
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 que
A hacker could modify the URL
Mypage.php?file=book.pdf
Becomes
Mypage.php?file=../htdocs/.htaccess
> -Original Message-
> From: Aaron Todd [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, August 11, 2004 11:58 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP] download script
"Aaron Todd" [EMAIL PROTECTED]> wrote in message
> > $file = "/home/dlr/test/".$_GET['file']."";
> Why would this be a security hole if I do not filter the file
> name before I use it?
http://www.yourdomain.com/yourfile.php?file=../../path/to/any/file/on/machine
---John Holmes...
--
PHP Gene
Why would this be a security hole if I do not filter the file name before I
use it?
Thanks,
Aaron
"Ed Lazor" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> The other guys addressed how to get the script working, but I thought I
> might also mention that you're presenting a potent
The other guys addressed how to get the script working, but I thought I
might also mention that you're presenting a potential security hole in your
app by not filtering the file name before using it. You'll also want to use
the realpath command on the full file name and path.
> -Original Mess
Thanks for your reply,
I am not getting an error at all. I have coded some error traping so if the
files is not found it will tell you instead of displaying an error. As a
test I took all of that out so the script was:
$file = "/home/dlr/test/".$_GET['file'].""
header("Content-Description:
Aaron Todd wrote:
";
echo basename($file);
echo "No File Found";
}
?>
Belay my last post...you're using readfile and not fread.
Okay, what error is the script outputting? You should remove the '@'
from in front of readfile() so that it will output an error if it's the
problem.
--
John C. N
Aaron Todd wrote:
";
echo basename($file);
echo "No File Found";
}
?>
Where are you opening the file?
--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Thursday 12 August 2004 01:06, Aaron Todd wrote:
> I am trying to dowload a file using readfile(), but PHP still cant seem to
> get to the file.
And what exactly does that mean? Any error messages?
> Here is my code:
>
> $file = "/home/lgxdlr/test/".$_GET['file']."";
> if (file_exists(base
On Saturday 22 May 2004 19:15, mattias lundberg wrote:
> Why isn't there any way to verify the authenticity of downloadable files,
> like you can do on apache.org where there are PGP hashes for each file?
> I know that there are MD5 sums on the website, but I can't assume that the
> webpage is not
Brian Dunning wrote:
I've been using the following code for some time to deliver electronic
downloads of purchased software products -
header('Content-Type: '.$file_row['content_type']);
header('Content-Disposition: filename="'.$file_row["filename"].'"');
$size = filesize('../../store/file
0, 2003 6:32 AM
Subject: Re: [PHP] download queue
I would do it this way. Output your files and update bandwith usage:
while($out=fread($file, 4096)) {
echo $out;
UPDATE bandwith_usage SET bandwith_usage = bandwith_usage+1 WHERE
second = UNIX_TIMESTAMP() LIMIT 1
if(mysql_aff
I would do it this way. Output your files and update bandwith usage:
while($out=fread($file, 4096)) {
echo $out;
UPDATE bandwith_usage SET bandwith_usage = bandwith_usage+1 WHERE
second = UNIX_TIMESTAMP() LIMIT 1
if(mysql_affected_rows()==0) { // if this is the first output in this
second
I
I've not know how
to do YET.
Cheers,
Mun Heng, Ow
H/M Engineering
Western Digital M'sia
DID : 03-7870 5168
-Original Message-
From: Daniel J. Rychlik [mailto:[EMAIL PROTECTED]
Sent: Friday, July 11, 2003 1:46 AM
To: Marek Kilimajer; Mantas Kriauciunas
Cc: [EMAIL PROTECTED]
Subject:
>Does anyone know how I can set a hyperlink to a file so that someone can
>download the file instead of viewing it in the browser? Please let me
>know. Thanks.
You want the Content-Disposition header, see the HTTP spec.
-
micha
You should also store passwords in a non-readable to the world directory.
-Dan
- Original Message -
From: "Marek Kilimajer" <[EMAIL PROTECTED]>
To: "Mantas Kriauciunas" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, July 10, 2003 5
Do you use secure connection? Well, you should.
Mantas Kriauciunas wrote:
Hello php-general,
some hacker just tries his luck everyday to get me pissed, is it
possible to make php files not downloadable? or coded? or something?
because some dude knows my passwords every time, and with them
nge as
necessary)
Matt
- Original Message -
From: Timothy Hitchens (HiTCHO) <[EMAIL PROTECTED]>
To: 'Martin' <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, January 21, 2003 10:08 AM
Subject: RE: [PHP] download script
> I have never done a script that supp
From: "Timothy Hitchens (HiTCHO)" <[EMAIL PROTECTED]>
To: "'Shaun van den Berg'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, January 21, 2003 1:44 AM
Subject: RE: [PHP] DOWNLOAD
> Create a script that reads the contents of a fil
I have never done a script that supports resume but this is the logic
you need to follow to work out the protocol behaviour.
- Create a download script as per below start downloading then stop the
web server.
- Change the script to e-mail you the headers from the script request.
- Restart the web
PROTECTED]
> -Original Message-
> From: Shaun van den Berg [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, 21 January 2003 8:19 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP] DOWNLOAD
>
>
> Hi Timothy,
>
> I dont understand , im a rookie so go easy on me. I hav
Create a script that reads the contents of a file after sending headers
eg:
header("Content-type: text/plain");
header("Content-Disposition: attachment; filename=downloaded.txt");
readfile("downloaded.txt");
exit();
The downloaded.txt can be any file subject to sending the correct
headers and IE
If the word document you are trying to download is already on the server,
you could probably just make a link to the file
http://host.com/document.doc";>
When the user clicks on it, they either view the document if they have the
MS Word plugin, or they are asked to download it. I'm not sure that
At 16:56 19.11.2002, Michelle spoke out and said:
[snip]
>I would like to download a word-document from another site and save it to my
>harddrive.
>How would I go about doing this?
>
>I tried:
>$filename = "http://host.com/document.doc;
>
>$fd = fopen ($filen
PHP is true and blue in relation to error messages (in this case
anyway):
Warning: stat failed for http://host.com/document.doc (errno=2 - No such
> file or directory) in d:\inetpub\wwwroot\dl-doc.php on line 8
The file either doesn't exist on "host.com" under the root directory
as "document.doc"
At 06:39 15.11.2002, Twist said:
[snip]
> This is all great, the problem is that it loads a new page
>the way I am doing it. I am using the header() function to get the
>browser to download. I have seen sites with counters that download
>the file a
It seems that php.net does load balancing of its downloads and every time
you open the downloads page it displays downloads from different
mirrors... so keep refreshing http://www.php.net/downloads.php until you
find a mirror which works for you.
Usually all the mirrors work first time but I did
On Tue, 11 Jun 2002, Kris Vose wrote:
> are there any php functions that handle downloads. For Instance I want to create a
>link that contains a url string. In this string a variable is defined as a file.
>This file will be downloaded when the user clicks on the link. How do you handle
>thi
Kris,
If I understand what you mean correctly, this is just an ordinary anchor
(nothing to do with php). For example,
http://mybox.domain.com/myfile.xls";>Click to download
When clicked, if ".xls" is in /etc/mime.types as
"application/vnd.ms-excel.xls" then it will either download or start
You mean like:
Get This File";
?>
Which would make a download link for "downloads/whatever.exe" in HTML?
Adam Voigt
[EMAIL PROTECTED]
On Tue, 2002-06-11 at 11:43, Kris Vose wrote:
> are there any php functions that handle downloads? For Instance I want to create a
>link that contains a url s
2:49 PM
To: PHP General
Subject: Re: [PHP] Download Page?
Common question becuase of it's somewhat unintuitive nature, but it is very
simple. Do a search for keywords "header" and "Content-disposition". That
should reveal what you want. Good luck.
-Kevin
-
1 - 100 of 128 matches
Mail list logo