Re: [PHP] php://input

2012-01-15 Thread Frank Arensmeier
15 jan 2012 kl. 06.18 skrev Adam Tong: Hi, I am trying to read variables from input method. I am using this tuorial: http://www.lornajane.net/posts/2008/Accessing-Incoming-PUT-Data-from-PHP. Here is my code: ?php if($_SERVER['REQUEST_METHOD'] == 'GET') { echo this is a get request\n;

[PHP] Measuring CPU time

2012-01-15 Thread Tim Streater
I haven't found a function to allow me to see elapsed CPU time to date in a function. Am I right in thinking none such exists? -- Cheers -- Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Numeric help needed

2012-01-15 Thread Christopher J Payne
Hi everyone, I am having a hard time with a numerical problem. I need to round some numbers up and I've tried $round($number) and it doesn't work so I'm misunderstanding something. For example, if a user inputs 685000 I need it to round up to 69 or if they input 149560 I need it to

Re: [PHP] Numeric help needed

2012-01-15 Thread Jason Pruim
Sent from my iPhone On Jan 15, 2012, at 8:25 PM, Christopher J Payne oxygene...@gmail.com wrote: Hi everyone, I am having a hard time with a numerical problem. I need to round some numbers up and I've tried $round($number) and it doesn't work so I'm misunderstanding something.

Re: [PHP] Numeric help needed

2012-01-15 Thread Chris Payne
Hi Jason, I've tried lots of different things, including: echo br . round(68500, 1000) . ROUNDED; thinking that might be it, but i'm stumped This is the example I was given (And have to go by): If the loan amount is $68500.00, the insurace will be based on $69000.00 as the amount is always

Re: [PHP] Numeric help needed

2012-01-15 Thread Simon J Welsh
On 16/01/2012, at 2:48 PM, Chris Payne wrote: Hi Jason, I've tried lots of different things, including: echo br . round(68500, 1000) . ROUNDED; thinking that might be it, but i'm stumped This is the example I was given (And have to go by): If the loan amount is $68500.00, the

Re: [PHP] Numeric help needed

2012-01-15 Thread Curtis Maurand
On 1/15/2012 8:48 PM, Chris Payne wrote: Hi Jason, I've tried lots of different things, including: echo br . round(68500, 1000) . ROUNDED; thinking that might be it, but i'm stumped This is the example I was given (And have to go by): If the loan amount is $68500.00, the insurace will be

Re: [PHP] Numeric help needed

2012-01-15 Thread Robert Williams
On Jan 15, 2012, at 19:00, Simon J Welsh si...@welsh.co.nzmailto:si...@welsh.co.nz wrote: On 16/01/2012, at 2:48 PM, Chris Payne wrote: If the loan amount is $68500.00, the insurace will be based on $69000.00 as the amount is always rounded up to the next $1000. The round() function only

Re: [PHP] Numeric help needed

2012-01-15 Thread Curtis Maurand
On 1/15/2012 9:24 PM, Robert Williams wrote: On Jan 15, 2012, at 19:00, Simon J Welshsi...@welsh.co.nzmailto:si...@welsh.co.nz wrote: On 16/01/2012, at 2:48 PM, Chris Payne wrote: If the loan amount is $68500.00, the insurace will be based on $69000.00 as the amount is always rounded up to

[PHP] Thank you all for your help

2012-01-15 Thread Chris Payne
Hi there, A big thank you to all of you who took time to help me with my numeric problem from earlier, it's been a huge help :-) Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php