php-general Digest 4 Jan 2009 10:37:40 -0000 Issue 5882

2009-01-04 Thread php-general-digest-help
php-general Digest 4 Jan 2009 10:37:40 - Issue 5882 Topics (messages 285417 through 285428): Re: How to count transfered kBytes in File-Download 285417 by: Michelle Konzack 285419 by: Eric Butera 285424 by: Ashley Sheridan 285425 by: Lars Torben Wilson

php-general Digest 5 Jan 2009 01:12:09 -0000 Issue 5883

2009-01-04 Thread php-general-digest-help
php-general Digest 5 Jan 2009 01:12:09 - Issue 5883 Topics (messages 285429 through 285441): Dear friend happy new year 2009 285429 by: John Jairo Vega Angulo Re: How to count transfered kBytes in File-Download 285430 by: Michelle Konzack 285435 by: Michelle Konzack

Re: [PHP] Re: Re: How to count transfered kBytes in File-Download

2009-01-04 Thread Ashley Sheridan
On Sat, 2009-01-03 at 23:41 -0800, mike wrote: I actually use $_SERVER['HTTP_CONTENT_RANGE'] in my setup (nginx + php-fpm) - I don't think I get an 'HTTP_RANGE' ... On Sat, Jan 3, 2009 at 9:52 PM, Lars Torben Wilson larstor...@gmail.com wrote: 2009/1/3 Ashley Sheridan

Re: [PHP] IE Problem Detecting Post Variables

2009-01-04 Thread tedd
At 5:35 PM -0600 1/3/09, Micah Gersten wrote: Ashley Sheridan wrote: Lets all march forward and renounce IE as a useful piece of software! Ash www.ashleysheridan.co.uk Agreed. According to the spec, the FF action is correct. I just heard IE's user share dropped below 70%. One day

[PHP] Re: How to count transfered kBytes in File-Download

2009-01-04 Thread Michelle Konzack
Hello Jim and *, Am 2009-01-02 21:12:58, schrieb Jim Lucas: $current_size = 0; while ( !feof($HANDLER) ) { $current_size += $buffer; echo fread($HANDLE, $buffer); } This part is working now... ;-) But there is a problem: IF the user interrupt the download, the PHP script

[PHP] Send file from script but with name... [fails]

2009-01-04 Thread Michelle Konzack
Hello, for some weeks I have accidently deleted some line of code and replaced it with: header(Content-Disposition: attachment; filename=\somestuff.foo\); but any programs (mozilla, iceape, wgwet, curl) do not more recognize the filename but saving the files fit a grmpfargh url... Any

[PHP] HTTP range headers [WAS: How to count transfered kBytes in File-Download]

2009-01-04 Thread Michelle Konzack
Am 2009-01-04 09:23:46, schrieb Ashley Sheridan: On Sat, 2009-01-03 at 23:41 -0800, mike wrote: I actually use $_SERVER['HTTP_CONTENT_RANGE'] in my setup (nginx + php-fpm) - I don't think I get an 'HTTP_RANGE' ... I'm still a little confused on this though. How would a browser send this to

[PHP] Re: HTTP range headers [WAS: How to count transfered kBytes in File-Download]

2009-01-04 Thread Michelle Konzack
Am 2009-01-04 15:23:04, schrieb Michelle Konzack: 7 Content-Length: 211183 8 Content-Range: bytes 552389-763571/763572 but I do not understand WHY the range is ONE BYTE less then the TOTAL LENGTH. OK, the first Byte is 0 and not 1 which is WHY the RANGE ends at 763571. Thanks, Greetings

[PHP] Re: How to count transfered kBytes in File-Download

2009-01-04 Thread Michelle Konzack
Hi Jim... ;-) The code: [ '/usr/share/tdphp-vserver/includes/02_functions.inc' ] function fncPushBinary($type='show', $file, $mime='') { snip $BUFFER=1024; $HANDLER=fopen($file, r); $CUR_SIZE=0; while ( !feof($HANDLER) ) {

[PHP] Re: Send file from script but with name... [fails]

2009-01-04 Thread Michelle Konzack
REVISION 0.0.1 Am 2009-01-04 18:36:46, schrieb Michelle Konzack: Hello, for some weeks I have accidently deleted some line of code and replaced it with: header(Content-Disposition: attachment; filename=\somestuff.foo\); but any programs (mozilla, iceape, wgwet, curl) do not more

[PHP] Re: Re: Re: How to count transfered kBytes in File-Download

2009-01-04 Thread Michelle Konzack
Hello Ashley, Am 2009-01-04 09:23:46, schrieb Ashley Sheridan: I'm still a little confused on this though. How would a browser send this to notify of a download that was only partially completed before? I am using Mozilla/Iceape under Debian GNU/Linux and it is sometimes realy confusing

Re: [PHP] IE Problem Detecting Post Variables

2009-01-04 Thread Nisse Engström
On Fri, 2 Jan 2009 18:06:18 -0500, Andrew Ballard wrote: If you mean an INPUT element with the type=button, then yes. (Although it will no longer be a submit button, so you'll have to capture the click and perform the submit using Javascript which leads back to accessibility issues, etc.)

Re: [PHP] Re: How to count transfered kBytes in File-Download

2009-01-04 Thread Eric Butera
On Sun, Jan 4, 2009 at 1:39 PM, Michelle Konzack linux4miche...@tamay-dogan.net wrote: Hi Jim... ;-) The code: [ '/usr/share/tdphp-vserver/includes/02_functions.inc' ] function fncPushBinary($type='show', $file, $mime='') { snip $BUFFER=1024;

Re: [PHP] Re: Re: How to count transfered kBytes in File-Download

2009-01-04 Thread mike
On Sun, Jan 4, 2009 at 1:23 AM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: I'm still a little confused on this though. How would a browser send this to notify of a download that was only partially completed before? I use it to process information from a POST that a Google Gears based

[PHP] Re: Re: How to count transfered kBytes in File-Download

2009-01-04 Thread Michelle Konzack
Hello Eric, Am 2009-01-04 14:33:37, schrieb Eric Butera: On Sun, Jan 4, 2009 at 1:39 PM, Michelle Konzack linux4miche...@tamay-dogan.net wrote: [ '/usr/share/tdphp-vserver/includes/02_functions.inc' ] function fncPushBinary($type='show', $file, $mime='') { snip

Re: [PHP] IE Problem Detecting Post Variables

2009-01-04 Thread Ashley Sheridan
On Sun, 2009-01-04 at 10:04 -0500, tedd wrote: At 5:35 PM -0600 1/3/09, Micah Gersten wrote: Ashley Sheridan wrote: Lets all march forward and renounce IE as a useful piece of software! Ash www.ashleysheridan.co.uk Agreed. According to the spec, the FF action is correct.

[PHP] A beginner´s question

2009-01-04 Thread Eduardo
Hi, I am Eduardo, a new PHP programmer and an old Cobol veteran. I know that $tastes=$_POST[tastes]; moves the content of tastes from ptextarea rows=5 name=tastes cols=28/textarea/p to $tastes How do I move the content of $tastes to X of echo textarea rows=5

[PHP] Re: A beginner´s question

2009-01-04 Thread Nathan Rixham
Eduardo wrote: Hi, I am Eduardo, a new PHP programmer and an old Cobol veteran. I know that $tastes=$_POST[tastes]; moves the content of tastes from ptextarea rows=5 name=tastes cols=28/textarea/p to $tastes How do I move the content of $tastes to X of echo textarea

Re: [PHP] Re: A beginner´s question

2009-01-04 Thread Micah Gersten
Nathan Rixham wrote: Eduardo wrote: Hi, I am Eduardo, a new PHP programmer and an old Cobol veteran. I know that $tastes=$_POST[tastes]; moves the content of tastes from ptextarea rows=5 name=tastes cols=28/textarea/p to $tastes How do I move the content of $tastes to X of

Re: [PHP] A beginner´s question

2009-01-04 Thread Vicente
How do I move the content of $tastes to X of echo textarea rows=5 cols=28 readonly name=X\n; - with simple quotes (better!): echo 'textarea rows=5 cols=28 readonly name='.$tastes.''; - on the contrary, you will need a backslash in doublequotes: echo textarea rows=\5\ cols=\28\

Re: [PHP] Re: A beginner´s question

2009-01-04 Thread TG
- Original Message - From: Nathan Rixham nrix...@gmail.com To: Eduardo vare...@gmail.com Cc: php-general@lists.php.net Date: Mon, 05 Jan 2009 03:00:19 + Subject: [PHP] Re: A beginner´s question Eduardo wrote: Hi, I am Eduardo, a new PHP programmer and an old Cobol veteran. I know

Re: [PHP] A beginner´s question

2009-01-04 Thread Vicente
ptextarea rows=5 name=tastes cols=28/textarea/p eps, sorry.. Micah Gersten is right. You will need the echo among them. textarea rows=5 name=tastes cols=28 ? echo $tastes;? /textarea -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Re: A beginner´s question

2009-01-04 Thread Micah Gersten
Micah Gersten wrote: Nathan Rixham wrote: Eduardo wrote: Hi, I am Eduardo, a new PHP programmer and an old Cobol veteran. I know that $tastes=$_POST[tastes]; moves the content of tastes from ptextarea rows=5 name=tastes cols=28/textarea/p to $tastes How do I move

Re: [PHP] A beginner´s question

2009-01-04 Thread Micah Gersten
Vicente wrote: ptextarea rows=5 name=tastes cols=28/textarea/p eps, sorry.. Micah Gersten is right. You will need the echo among them. textarea rows=5 name=tastes cols=28 ? echo $tastes;? /textarea Yep, but you caught the quotes mix-up. :) Thank you, Micah Gersten

Re[2]: [PHP] A beginner´s question

2009-01-04 Thread Vicente
Eduardo don't worry it's the new year hangover. Really you are in a guru list :) Vicente wrote: ptextarea rows=5 name=tastes cols=28/textarea/p eps, sorry.. Micah Gersten is right. You will need the echo among them. textarea rows=5 name=tastes cols=28 ? echo $tastes;?

Re: [PHP] Re: Re: How to count transfered kBytes in File-Download

2009-01-04 Thread Jim Lucas
Michelle Konzack wrote: Hello Eric, Am 2009-01-04 14:33:37, schrieb Eric Butera: On Sun, Jan 4, 2009 at 1:39 PM, Michelle Konzack linux4miche...@tamay-dogan.net wrote: [ '/usr/share/tdphp-vserver/includes/02_functions.inc' ] function fncPushBinary($type='show', $file,