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 wrote: [ '/usr/share/tdphp-vserver/includes/02_functions.inc' ] function fncPushBinary($type='show', $file, $mime='') { $BUFFER=1024;

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: >>> >>> >> >> eps, sorry.. Micah Gersten is right. You will need the echo among >> them. >> >> >> >> >> > Yep, but you caught the quotes mix-up. :) -- PHP General Maili

Re: [PHP] A beginner´s question

2009-01-04 Thread Micah Gersten
Vicente wrote: >> >> > > eps, sorry.. Micah Gersten is right. You will need the echo among > them. > > > > > Yep, but you caught the quotes mix-up. :) Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com -- PHP General Mailing List (http://ww

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 >>> >>> to >>> $tastes >>> >>> >>> How do I move the content

Re: [PHP] A beginner´s question

2009-01-04 Thread Vicente
> eps, sorry.. Micah Gersten is right. You will need the echo among them. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2009-01-04 Thread TG
- Original Message - From: Nathan Rixham To: Eduardo 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 that > > $tastes=$_POST["

Re: [PHP] A beginner´s question

2009-01-04 Thread Vicente
> How do I move the content of $tastes to X of > echo "\n"; - with simple quotes (better!): echo ''; - on the contrary, you will need a backslash in doublequotes: echo ""; - also, you can close php brackets before and after putting the php code inside: best regards, -- PHP G

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 >> >> to >> $tastes >> >> >> How do I move the content of $tastes to X of >> echo "\n"; >> ? >> >

[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 to $tastes How do I move the content of $tastes to X of echo "\n"; ? Thanks, Eduardo echo "\n"; echo "this

[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 to $tastes How do I move the content of $tastes to X of echo "\n"; ? Thanks, Eduardo

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,

[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 > wrote: > > [ '/usr/share/tdphp-vserver/includes/02_functions.inc' ] > > function fncPushBinary($type='show', $file, $mime='') { > > > >$BUFFER=1024; > > > >

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 wrote: > Hi Jim... ;-) > > The code: > > [ '/usr/share/tdphp-vserver/includes/02_functions.inc' ] > function fncPushBinary($type='show', $file, $mime='') { > >$BUFFER=1024; > >$HANDLER=fopen($file, r); > >$C

[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 no

[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='') { $BUFFER=1024; $HANDLER=fopen($file, r); $CUR_SIZE=0; while ( !feof($HANDLER) ) { $CUR_SIZE+=$BUFFE

[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 url... Any hints what

[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 scrip

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: 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, Greetin

[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 > t

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, et

[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 s

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 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 uploader sends. -- PHP Ge

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 > wrote: > > 2009/1/3 Ashley Sheridan : > >> On Sat, 2009-01-03 at