RE: [PHP] File download question

2009-09-06 Thread Andrea Giammarchi
bject: Re: [PHP] File download question > > I think that your problem in this line: > > header("Content-Disposition: filename=$file" . "%20"); > > I don't know what that %20 is for and you should quote the filename, > that line should be some

Re: [PHP] File download question

2009-09-06 Thread Jonathan Tapicer
I think that your problem in this line: header("Content-Disposition: filename=$file" . "%20"); I don't know what that %20 is for and you should quote the filename, that line should be something like this: header("Content-Disposition: attachment; filename=\"$file\""); Considering that $filenam

[PHP] File download question

2009-09-06 Thread Chris Payne
Hi Everyone, I've setup a filedownload which works but i'm having an issue, i've left out but when it downloads it, while it has the correct file it doesn't have a file extension associated with it, I need the .7z extension associated with the filename, can anyone see why that would do this below?

Re: [PHP] File download problem

2008-08-19 Thread tedd
At 3:32 PM +0100 8/19/08, Ashley Sheridan wrote: That bug report makes sense now, in light of your problem. It wasn't something I'd ever seen happen before, as most of my work is done on Linux, and the bug seems to be specific to the way Windows uses the BOM for UTF-8 PHP files. Ash: A probl

Re: [PHP] File download problem

2008-08-19 Thread Ashley Sheridan
That bug report makes sense now, in light of your problem. It wasn't something I'd ever seen happen before, as most of my work is done on Linux, and the bug seems to be specific to the way Windows uses the BOM for UTF-8 PHP files. Ash www.ashleysheridan.co.uk --- Begin Message --- I just add this

Re: [PHP] File download problem

2008-08-19 Thread Stefano Noffke
I just add this comment for reference. I found this bug report on the PHP Web site: http://bugs.php.net/bug.php?id=22108 That bug explains everything :) Stefano Stefano Noffke wrote: Thanks for the reply. I think I found the problem here: The php file was saved with UTF-8 encoding, and for

Re: [PHP] File download problem

2008-08-19 Thread Stefano Noffke
ysheridan.co.uk Subject: Re: [PHP] File download problem From: Stefano Noffke <[EMAIL PROTECTED]> Date: Tue, 19 Aug 2008 15:17:25 +0200 To: php-general@lists.php.net To: php-general@lists.php.net I checked the files with an HEX editor, and I found that each downloaded file starts with "EFBB

Re: [PHP] File download problem

2008-08-19 Thread Ashley Sheridan
p); } fclose($fp); exit(); The "rb" in the fopen function instructs PHP to open the file for reading in a binary safe manner. Hope this helps. Ash www.ashleysheridan.co.uk -------- Oggetto: [PHP] File download problem Da

Re: [PHP] File download problem

2008-08-19 Thread Stefano Noffke
---------- Oggetto: [PHP] File download problem Da: Stefano Noffke <[EMAIL PROTECTED]> Data: Mon, 18 Aug 2008 16:01:22 +0200 A: php-general@lists.php.net A: php-general@lists.php.net Greetings, I need to create a script to let registered users to download files from a non-p

Re: [PHP] File download problem

2008-08-18 Thread Stefano Noffke
exit(); The "rb" in the fopen function instructs PHP to open the file for reading in a binary safe manner. Hope this helps. Ash www.ashleysheridan.co.uk ------------ Oggetto: [PHP] File download problem Da: Stefano Noffke

Re: [PHP] File download problem

2008-08-18 Thread Ashley Sheridan
Hi Stefano, You can use this code instead to read in the file and output it to the browser, as it is binary safe. I've used it for the same reason you require, and it works fine with video clips. $fp = fopen($path, "rb"); while(!feof($fp)) { print(fread($fp, 1024)); flush($fp); } fc

[PHP] File download problem

2008-08-18 Thread Stefano Noffke
Greetings, I need to create a script to let registered users to download files from a non-public folder. The files name, type, and size are stored in a MySQL Database. The user need to click on a link, and a PHP script should handle the download of the file. Here is how I organized it: Th

Re: [PHP] File Download Headers

2006-06-15 Thread Richard Lynch
On Thu, June 15, 2006 10:17 am, Jon Anderson wrote: > Richard Lynch wrote: >> Can any experts on this list explain to me why, despite the >> 1,000,000 >> places that application/octet-stream is documented to work, and has >> always worked, since Mosaic 1.0 days, people manage to find these >> goofb

Re: [PHP] File Download Headers

2006-06-15 Thread Jon Anderson
Richard Lynch wrote: Can any experts on this list explain to me why, despite the 1,000,000 places that application/octet-stream is documented to work, and has always worked, since Mosaic 1.0 days, people manage to find these goofball Content-type: headers that are supposed to work, but only work

[PHP] File Download Headers

2006-06-15 Thread Richard Lynch
Can any experts on this list explain to me why, despite the 1,000,000 places that application/octet-stream is documented to work, and has always worked, since Mosaic 1.0 days, people manage to find these goofball Content-type: headers that are supposed to work, but only work in a handful of browser

Re: [PHP] File Download Problems

2004-09-16 Thread Marek Kilimajer
John Holmes wrote: From: "PHP Junkie" <[EMAIL PROTECTED]> As my link to the download file, I changed it to And changed the code in the download file to How are you validating $F and ensuring it's not a path to any file on your server? imsafm_user_dl.php?F=/home/path/to/secret/file.txt It's a F

Re: [PHP] File Download Problems

2004-09-16 Thread John Holmes
From: "PHP Junkie" <[EMAIL PROTECTED]> As my link to the download file, I changed it to And changed the code in the download file to How are you validating $F and ensuring it's not a path to any file on your server? imsafm_user_dl.php?F=/home/path/to/secret/file.txt ---John Holmes... -- PHP G

Re: [PHP] File Download Problems

2004-09-16 Thread PHP Junkie
Ave, I made a change last evening, and since the change.. It seems to be working fine. Thus far I haven't had the 1 KB downloaded file problem. I have been trying all evening and this morning, from different places, and somehow right now it seems to be working fine. What I simply did was this:

Re: [PHP] File Download Problems

2004-09-16 Thread Chris Dowell
Chances are your 1KB file contains an error message - try changing the Content-Type to text/plain or text/html to see what PHP is throwing at you Cheers Chris Marek Kilimajer wrote: PHP Junkie wrote: Ave, I've been having a very nagging and frustrating problem for a while and I hope someone can

Re: [PHP] File Download Problems

2004-09-15 Thread Marek Kilimajer
PHP Junkie wrote: Ave, I've been having a very nagging and frustrating problem for a while and I hope someone can help me out with this. I created a simple File Manager application, a lot of you already know about it as you helped me with coding at different stages. The problem is this: The Downloa

[PHP] File Download Problems

2004-09-15 Thread PHP Junkie
Ave, I've been having a very nagging and frustrating problem for a while and I hope someone can help me out with this. I created a simple File Manager application, a lot of you already know about it as you helped me with coding at different stages. The problem is this: The Download. When you dow

Re: [PHP] File Download link not working in PHP 4.3.4

2004-03-31 Thread John W. Holmes
Check the comments on this page: http://us2.php.net/manual/en/function.session-cache-limiter.php ---John Holmes... - Original Message - From: "Andrew Hauger" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, March 31, 2004 11:18 AM Subject: Re: [PHP]

Re: [PHP] File Download link not working in PHP 4.3.4

2004-03-31 Thread Andrew Hauger
sposition: attachment; filename="product.'.$file_ending.'"' ); header ( 'Expires: ' . date ( 'r', 0 )); Still getting the same behavior, on both the Windows and Solaris platforms. Andy > From: Curt Zirzow [EMAIL PROTECTED] > Sent: Tuesday, March 30, 2004 9:56

Re: [PHP] File Download link not working in PHP 4.3.4

2004-03-30 Thread Curt Zirzow
* Thus wrote Andrew Hauger ([EMAIL PROTECTED]): > the file name. When the "OK" button is clicked, an > error dialog pops up with the message "Internet > Explorer cannot download ... [snipped URL]. Internet > Explorer was not able to open this Internet site. The > requested site is either unavailabl

[PHP] File Download link not working in PHP 4.3.4

2004-03-30 Thread Andrew Hauger
I have a script that dynamically generates a CSV file for downloading to MS Excel. The script works fine in PHP 4.3.3 on a Windows machine using Apache 2, and the exact same script does not work in PHP 4.3.4 on Solaris 9 using Apache 1.3.29. A script with essentially the same header commands works

[PHP] file download using header

2004-01-23 Thread Joshua Minnie
I am having some trouble making it possible to download a file using the header function. The problems are: (1) I get the dialog box to download the file, but for some reason the type of file isn't getting passed to the box, and (2) when I download a 4MB file it only seems to be getting 16.6KB. I

Re: [PHP] File Download

2003-10-03 Thread Grant Rutherford
Maybe I should clarify this: I have a the php file: /var/www/html/dev/view_files_disply.php This file accepts a POST argument which identifies $filename (example 1392_foobar.txt) of a file stored on the server at: /var/www/html/files/1392_foobar.txt This filename is generated by PHP and is there

[PHP] File Download

2003-10-03 Thread Grant Rutherford
Hi there, I would like to send an arbitrary file to a user. This file will be on the server in the PHP directory. I will also want to rename it before it is sent, but keep the old file with the old filename. Any help is appreciated... Thanks, Grant -- Grant Rutherford Iders Incorporated 600A

[PHP] File download problem using Netscape 7.x

2003-10-02 Thread Ulrich Hacke
Hello, I have some files on a website which the user can download (e.g. pdf, zip...). The files sould not bw displayes but the browser should aks the user what to do (e.g. save it to disk, open it). My code look like this: header("Content-type: application/octet-stream"); header("Content-dispositi

Re: [PHP] File download by php header...

2003-07-22 Thread Scott Fletcher
Found the problem. It is the odbc_connect() that cause the download to fall short of completing it's download. Weird! I think it's because the database connection have a slower response time than the download response time. PHP header should not be affected by the odbc function... But then I r

Re: [PHP] File download by php header...

2003-07-21 Thread Scott Fletcher
> btw, also on the content-disposition, not only will some browsers not > honor that, they will just use the name of the script as the 'save-as' > filename. That's okay with the 'save as' filename because no one know hte real filename on the webserver because it is renamed when it is download anyw

Re: [PHP] File download by php header...

2003-07-21 Thread Scott Fletcher
Um, problem is I don't have any scripts before this sample header function. So, something is up. Does the file size 49 MB have something to do with it? Okay, saw both of the replies, so will check them out. Thanks, Scott "Curt Zirzow" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]

Re: [PHP] File download by php header...

2003-07-21 Thread Curt Zirzow
* Thus wrote Scott Fletcher ([EMAIL PROTECTED]): > Hi! > > I'm using PHP 4.3.2 and IIS 5.0. I'm using the PHP header to > cause the webserver to download the file to the web browser. Some > of the time it work and some of the other time, it doesnt. I > haven't figured out why un

Re: [PHP] File download by php header...

2003-07-21 Thread Chris Hayes
At 16:15 21-7-03, you wrote: Hi! I'm using PHP 4.3.2 and IIS 5.0. I'm using the PHP header to cause the webserver to download the file to the web browser. Some of the time it work and some of the other time, it doesnt. I haven't figured out why until I looked in the error log which showed h

[PHP] File download by php header...

2003-07-21 Thread Scott Fletcher
Hi! I'm using PHP 4.3.2 and IIS 5.0. I'm using the PHP header to cause the webserver to download the file to the web browser. Some of the time it work and some of the other time, it doesnt. I haven't figured out why until I looked in the error log which showed hte problem... See two clipp

Re: [PHP] File Download?

2003-04-04 Thread Jason Wong
On Friday 04 April 2003 15:29, b b wrote: > It would be: > href="downloadFile.php?daFile=path/fileName">path/fileName > > I tried to print the _GET['daFile'] however if I am > using the header function in the same file then it > won't print a thing. Well, disable the file downloading section

Re: [PHP] File Download?

2003-04-03 Thread b b
It would be: path/fileName I tried to print the _GET['daFile'] however if I am using the header function in the same file then it won't print a thing. In fact it starts downloading. The only thing is that it doesn't catch the correct file name (though it downloads the actual daFile). Cheers,

Re: [PHP] File Download?

2003-04-03 Thread Jason Wong
On Friday 04 April 2003 13:51, b b wrote: > Why would the $daFile in the following code be > resolved to "". I am passing it via the url. > session_start(); > if($_SESSION['isValidSession'] == 'Y'){ > $daFile = $_GET['daFile']; - What URL are you using? - Have you t

[PHP] File Download?

2003-04-03 Thread b b
Hi, Why would the $daFile in the following code be resolved to "". I am passing it via the url. You are not autherized to view this page"); } ?> __ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness,

[PHP] File download

2003-04-03 Thread b b
Hi, Anybody knows the solution to the following: I am trying to force the download of a file called dadada.txt. I have a file named downloadFile.php It is invoked like this: dadada.txt However within the downloadFile.php the $daFile argument is empty. This is the file: You are not a

Re: [PHP] File Download

2003-03-06 Thread Jim Lucas
day, March 06, 2003 8:30 AM Subject: [PHP] File Download > Hello > > I have a script that after login gives the user access to one directory. The > directory depends on their login. > > After login a list of files is displayed with a check box in front of each file. > Under t

[PHP] File Download

2003-03-06 Thread David Miller
Hello I have a script that after login gives the user access to one directory. The directory depends on their login. After login a list of files is displayed with a check box in front of each file. Under the list of files there are several buttons, Copy, Delete, Rename, Upload, and Download.

Re: [PHP] File download + HTTP auth problem.

2002-11-05 Thread rija
lt;[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, November 06, 2002 6:29 AM Subject: [PHP] File download + HTTP auth problem. > Hello, > > I have this simple script called index.php in a directory protected with > HTTP auth (require valid-user): > >$arc

[PHP] File download + HTTP auth problem.

2002-11-05 Thread Rodolfo Gonzalez
Hello, I have this simple script called index.php in a directory protected with HTTP auth (require valid-user): readfile($archivo); ?> When I access the directory with Netscape/Mozilla/Galeon it works fine, Apache "asks" the login and password and the script sends the file. But with MSIE 6.x (

RE: Re[2]: [PHP] File download doesn't work with SSL

2002-10-08 Thread John W. Holmes
9:55 AM > To: John W. Holmes > Cc: 'Tom Rogers'; [EMAIL PROTECTED] > Subject: RE: Re[2]: [PHP] File download doesn't work with SSL > > Right, I figured you knew this as it is documented. You can change that > in your php.ini file using the session.cache_limit

RE: Re[2]: [PHP] File download doesn't work with SSL

2002-10-08 Thread Rasmus Lerdorf
-John Holmes... > > > -Original Message- > > From: John W. Holmes [mailto:[EMAIL PROTECTED]] > > Sent: Tuesday, October 08, 2002 8:08 AM > > To: 'Rasmus Lerdorf'; 'Tom Rogers' > > Cc: [EMAIL PROTECTED] > > Subject: RE: Re[2]: [PHP] File dow

RE: Re[2]: [PHP] File download doesn't work with SSL

2002-10-08 Thread John W. Holmes
[EMAIL PROTECTED] > Subject: RE: Re[2]: [PHP] File download doesn't work with SSL > > Okay, I tried just a page with only session_start() in it and the page > does send a no-cache, no-store header. > > output from wget > > D:\wget>wget -S http:/

RE: Re[2]: [PHP] File download doesn't work with SSL

2002-10-08 Thread John W. Holmes
esday, October 08, 2002 1:00 AM > To: Tom Rogers > Cc: John W. Holmes; [EMAIL PROTECTED] > Subject: Re[2]: [PHP] File download doesn't work with SSL > > Why not just a simple wget -S https://... to see the headers? > > On Tue, 8 Oct 2002, Tom Rogers wrote: > > > Hi

Re[2]: [PHP] File download doesn't work with SSL

2002-10-07 Thread Rasmus Lerdorf
Why not just a simple wget -S https://... to see the headers? On Tue, 8 Oct 2002, Tom Rogers wrote: > Hi, > > Tuesday, October 8, 2002, 1:32:16 PM, you wrote: > JWH> Thanks for the help guys. Like I said, the download works fine as long > JWH> as it's not over SSL. I will try to disable it and s

Re[2]: [PHP] File download doesn't work with SSL

2002-10-07 Thread Tom Rogers
Hi, Tuesday, October 8, 2002, 1:32:16 PM, you wrote: JWH> Thanks for the help guys. Like I said, the download works fine as long JWH> as it's not over SSL. I will try to disable it and see if I can look at JWH> the headers sent to see if a no-cache header is being sent, even though JWH> I haven't

RE: [PHP] File download doesn't work with SSL

2002-10-07 Thread John W. Holmes
the grunt work, at least. :) ---John Holmes... > -Original Message- > From: Chris Shiflett [mailto:[EMAIL PROTECTED]] > Sent: Monday, October 07, 2002 11:22 PM > To: [EMAIL PROTECTED] > Cc: 'Tom Rogers'; [EMAIL PROTECTED] > Subject: Re: [PHP] File download do

Re: [PHP] File download doesn't work with SSL

2002-10-07 Thread Chris Shiflett
Yes, you're right. You might want to turn off the forced SSL temporarily to debug this, if that's possible. Nothing other than your browser or the Web server will be able to show you the HTTP communication over SSL, because it's all trash to everything in between. There may be settings in Oper

Re[4]: [PHP] File download doesn't work with SSL

2002-10-07 Thread Tom Rogers
Hi, Tuesday, October 8, 2002, 12:59:40 PM, you wrote: JWH> Wouldn't everything be encrypted, though, since it's over SSL? Including JWH> the headers? JWH> Unfortunately, the way they set up the server, it will not process any JWH> unsecured requests now. JWH> ---John Holmes... Yes it is encry

RE: Re[2]: [PHP] File download doesn't work with SSL

2002-10-07 Thread John W. Holmes
> Tuesday, October 8, 2002, 12:13:59 PM, you wrote: > >> You can have multiple directives in that header: > >> > >> Cache-Control: no-cache, no-store > >> > >> Do you have a way to view the HTTP? > > JWH> No. Can you recommend a good method on windows? Should I get lynx or > JWH> does opera have

Re[2]: [PHP] File download doesn't work with SSL

2002-10-07 Thread Tom Rogers
Hi, Tuesday, October 8, 2002, 12:13:59 PM, you wrote: >> You can have multiple directives in that header: >> >> Cache-Control: no-cache, no-store >> >> Do you have a way to view the HTTP? JWH> No. Can you recommend a good method on windows? Should I get lynx or JWH> does opera have a method to

RE: [PHP] File download doesn't work with SSL

2002-10-07 Thread Peter Houchin
> > You can have multiple directives in that header: > > > > Cache-Control: no-cache, no-store > > > > Do you have a way to view the HTTP? > > No. Can you recommend a good method on windows? Should I get lynx or > does opera have a method to view all the headers? can't you view all headers etc in

RE: [PHP] File download doesn't work with SSL

2002-10-07 Thread John W. Holmes
> You can have multiple directives in that header: > > Cache-Control: no-cache, no-store > > Do you have a way to view the HTTP? No. Can you recommend a good method on windows? Should I get lynx or does opera have a method to view all the headers? ---John Holmes... -- PHP General Mailing L

Re: [PHP] File download doesn't work with SSL

2002-10-07 Thread Chris Shiflett
You can have multiple directives in that header: Cache-Control: no-cache, no-store Do you have a way to view the HTTP? Chris John W. Holmes wrote: >I had tried it with both cases, actually, just to be sure. It did not >make a difference. If the session is sending a no-cache header, would >the

RE: [PHP] File download doesn't work with SSL

2002-10-07 Thread John W. Holmes
[EMAIL PROTECTED]] > Sent: Monday, October 07, 2002 8:45 PM > To: Rasmus Lerdorf > Cc: 1LT John W. Holmes; [EMAIL PROTECTED] > Subject: Re: [PHP] File download doesn't work with SSL > > Are you sure? > > I think (I might be wrong) using PHP sessions automatically sends t

Re: [PHP] File download doesn't work with SSL

2002-10-07 Thread Chris Shiflett
Are you sure? I think (I might be wrong) using PHP sessions automatically sends the Cache-Control header. I cannot remember what directives it uses. Perhaps the fact that you do not use correct case makes PHP miss the fact that you want to reassign Cache-Control to use a different value? If t

Re: [PHP] File download doesn't work with SSL

2002-10-07 Thread Rouvas Stathis
rding this issue? > > ---John Holmes... > > - Original Message - > From: "Rouvas Stathis" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Cc: "1LT John W. Holmes" <[EMAIL PROTECTED]> > Sent: Monday, October 07, 2002 2:00 PM >

Re: [PHP] File download doesn't work with SSL

2002-10-07 Thread 1LT John W. Holmes
'excel'"); > > > header("content-disposition: attachment; filename=" . $filename . > > > ".xls"); > > > > > > and I'm still getting the same thing. Is the no-cache cache-control header > > > s

Re: [PHP] File download doesn't work with SSL

2002-10-07 Thread Rouvas Stathis
; code. > > > > Any help is appreciated. > > > > ---John Holmes... > > > > - Original Message - > > From: "Rasmus Lerdorf" <[EMAIL PROTECTED]> > > To: "1LT John W. Holmes" <[EMAIL PROTECTED]> > > Cc: <[EM

Re: [PHP] File download doesn't work with SSL

2002-10-07 Thread Rasmus Lerdorf
> - Original Message - > From: "Rasmus Lerdorf" <[EMAIL PROTECTED]> > To: "1LT John W. Holmes" <[EMAIL PROTECTED]> > Cc: <[EMAIL PROTECTED]> > Sent: Monday, October 07, 2002 10:08 AM > Subject: Re: [PHP] File download doesn't work w

Re: [PHP] File download doesn't work with SSL

2002-10-07 Thread 1LT John W. Holmes
sent automatically by PHP at all? I don't have one set explicitly in my code. Any help is appreciated. ---John Holmes... - Original Message - From: "Rasmus Lerdorf" <[EMAIL PROTECTED]> To: "1LT John W. Holmes" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]&

Re: [PHP] File download doesn't work with SSL

2002-10-07 Thread 1LT John W. Holmes
> Does it work with a different browser? Smells like an IE bug to me. Doesn't everything with IE smell like a bug? Anyhow, it works fine with Netscape. Opera will not open the file, but will save-as just fine when prompted. I'm off to search MS... help me... ---John Holmes... > > Everyone,

Re: [PHP] File download doesn't work with SSL

2002-10-07 Thread Rasmus Lerdorf
Does it work with a different browser? Smells like an IE bug to me. On Mon, 7 Oct 2002, 1LT John W. Holmes wrote: > Everyone, > > I've had a simple download script working where a user would click on a link and the >program would send word or excel headers instead of HTML. The file would then

[PHP] File download doesn't work with SSL

2002-10-07 Thread 1LT John W. Holmes
Everyone, I've had a simple download script working where a user would click on a link and the program would send word or excel headers instead of HTML. The file would then be opened in the appropriate program and the user could save/edit it. Now that we've loaded everything under SSL, it does

[PHP] file download/open and ie bug

2002-09-05 Thread David Buerer
I'm using version 6 of IE and Netscape I'm allowing the user to open/dowload a file from a secure locaiton on our server. Under Netscape it works great! Under IE, it doesn't work at all. IE complains about not being able to read from the server. Anyone know of any workarounds? here's the comm

[PHP] File download/upload

2002-06-11 Thread Brad Wright
Hello, Can anyone point me towards a tute (or any info) about using php to upload and download medium size (~500k-1meg) files into a mySQL database (as blob's i assume). Cheers, Brad Nel vino la verità, nella birra la forza, nell'acqua i bacilli

RE: [PHP] file download in IE

2002-04-23 Thread Rodolfo Gonzalez
On Tue, 23 Apr 2002, .ben wrote: > I think this is only an issue with an un-patched IE5.01, anything higher > than that should work fine. In my experience, there're problems even with MSIE 6.x. Regards, Rodolfo. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://

RE: [PHP] file download in IE

2002-04-23 Thread .ben
I think this is only an issue with an un-patched IE5.01, anything higher than that should work fine. .b > -Original Message- > From: Negrea Mihai [mailto:[EMAIL PROTECTED]] > Sent: 23 April 2002 12:26 > To: [EMAIL PROTECTED] > Subject: [PHP] file download in IE >

[PHP] file download in IE

2002-04-23 Thread Negrea Mihai
Hi! How on earth do I make Internet Explorer to download a file generated with: header("Content-type: application/octet-stream"); header("Content-Disposition: attachment; filename=$fname"); include($this->dir . $fname); exit; It works on http but I need it on htt

[PHP] File Download

2001-12-24 Thread Gerard Samuel
Hey all. Im trying out a script that where I can download the contents of a database as a dump. On a large database, the end get truncated. ie, there were still maybe 6-7 more tables more till the end out of maybe 100 tables. The behaviour is erratic. It is not consistent with where the dump

[PHP] File download results question

2001-11-20 Thread Joe Van Meer
Hi there. I have a small php app that allows a user to download a txt file that's created 'on the fly' from a database. Everything is working great except for the actual results displayed on the file...it get results similar to the code below...it's insertng tags (and square characters) all over

Re: [PHP] File Download Inquiry

2001-11-19 Thread Douglas McKenzie
You can just link to the file eg download file just make sure the path is correct. Joe Van Meer wrote: > Hi there. How would I go about downloading a file off of the server. The > filename will always be the same in my case. Say it is sitting in a > directory called 'textfiles'. What method/fun

[PHP] File Download Inquiry

2001-11-19 Thread Joe Van Meer
Hi there. How would I go about downloading a file off of the server. The filename will always be the same in my case. Say it is sitting in a directory called 'textfiles'. What method/function would I use to download it to a user's local system? Thx Joe:) -- PHP General Mailing List (http://ww

[PHP] file download fixed

2001-08-04 Thread Data Driven Design
Rasmus thatnks for your help, this code works. Data Driven Design 1506 Tuscaloosa Ave Holly Hil, FL 32117 http://www.datadrivendesign.com http://www.rossidesigns.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

RE: [PHP] File Download IE behavior

2001-07-11 Thread Chadwick, Russell
il [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 11, 2001 7:50 AM To: [EMAIL PROTECTED] Subject: [PHP] File Download IE behavior When generating a download file from PHP to IE (Netscape is not used by my client base) the browser prompts with an option to download the file or open the file w

[PHP] File Download IE behavior

2001-07-11 Thread Warren Vail
When generating a download file from PHP to IE (Netscape is not used by my client base) the browser prompts with an option to download the file or open the file where it is. Opening the file fails and I am forced to download the file to my local drive before receiving another prompt to open the

[PHP] File Download Mouse Behavior

2001-07-11 Thread Warren Vail
When using PHP to generate a download file, the PHP program generates the headers and the actual text content of the file and this all works just fine. However, after the file download is complete, positioning the mouse anywhere over the browser (still showing the previous page) it appears as an

[PHP] File download script

2001-07-05 Thread Tom Carter
Hi all, I have a script getfile.php which when I call like getfile.php?fileid=12 and it returns the file to the browser with the appropiate mime headers etc.. however a problem has recently come where when I have a link to this from a page then it prompts me to download the page I'm calling from

Re: [PHP] file download

2001-05-23 Thread py
om: Aleksey Yarilovets <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, May 23, 2001 9:44 AM Subject: [PHP] file download > Hi everyone! > > I need user to dowload a file from my server ( Apache ), what i do is: > header("Content-Type: applicati

[PHP] file download

2001-05-23 Thread Aleksey Yarilovets
Hi everyone! I need user to dowload a file from my server ( Apache ), what i do is: It was working till now but sudenly i start recieve the message from iexplorer: IE can not download ScriptName.php file from the server. IE was not able to open this site. The requested site either unavailable

[PHP] File Download With A Twist....

2001-04-22 Thread Donovan J. Edye
G'Day, I would like to do the following when a user clicks on a link to this PHP script. The script would be located on www.myserver.com but the page with the link would be on a mirror say in Australia (www.someserver.com.au): - Log info about the user download request to a text file - Display a

RE: [PHP] File Download Completion

2001-02-02 Thread Boaz Yahav
r you stopped the DL in the middle. From it's point of view you asked for a 1MB file and you got it... so checking the log file will not work. berber -Original Message- From: Boaz Yahav [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 31, 2001 12:44 PM To: Php-General Subject: [PHP] Fil

Re: [PHP] File Download Completion

2001-02-01 Thread Daniel Grace
On Wednesday, January 31, 2001 at 12:00 PM, "Boaz Yahav" <[EMAIL PROTECTED]> wrote: > Seems like your theory doesn't stand the reality test :) > > This is the script which for some reason works with Netscape but not with IE > (it used to) : >ignore_user_abort(0); >$filename="test.gz"; >

RE: [PHP] File Download Completion

2001-01-31 Thread Boaz Yahav
essage- From: Daniel Grace [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 31, 2001 2:37 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] File Download Completion "Boaz Yahav" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Is it possible

RE: [PHP] File Download Completion

2001-01-31 Thread Boaz Yahav
.4pl1 any idea? -Original Message- From: Daniel Grace [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 31, 2001 2:37 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] File Download Completion "Boaz Yahav" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news

RE: [PHP] File Download Completion

2001-01-31 Thread Boaz Yahav
ry 31, 2001 2:55 PM To: Boaz Yahav; Php-General Subject: Re: [PHP] File Download Completion Hi Berber, The only way I've figured this at the moment is to use the web server access logs. They will tell you how many bytes were transfered, if it matches the file size then transmission was

Re: [PHP] File Download Completion

2001-01-31 Thread Andy Woolley
lt;[EMAIL PROTECTED]> Sent: Wednesday, January 31, 2001 10:44 AM Subject: [PHP] File Download Completion > Is it possible to find out if a client finished to DL a file? > > Suppose i put a link to a file and people start to DL the file. > Some people can stop the DL in the middle. I

Re: [PHP] File Download Completion

2001-01-31 Thread Daniel Grace
"Boaz Yahav" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Is it possible to find out if a client finished to DL a file? > > Suppose i put a link to a file and people start to DL the file. > Some people can stop the DL in the middle. I need to know > how many

[PHP] File Download Completion

2001-01-31 Thread Boaz Yahav
Is it possible to find out if a client finished to DL a file? Suppose i put a link to a file and people start to DL the file. Some people can stop the DL in the middle. I need to know how many people completed the DL. Any simple ideas how to do this? thanks berber -- PHP General Mailing List