[PHP-DB] Scheduling php task

2001-03-05 Thread Valerio Ferrucci


Does anyone know if is it possible to run a php script periodically (for
example every night)?

My system is Apache, LinuxPPC, php4


Thanks

==
Valerio FerrucciTabasoft Sas
[EMAIL PROTECTED]  http://tabasoft.ancitel.it
[EMAIL PROTECTED]



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DB] number_format bug?

2001-02-20 Thread Valerio Ferrucci

I call:

?
$a = 13.8;
$b = number_format($a, 2, ",", ".");
print($b);
?

the output is "13,00"

!!
any idea?
Is it a bug?

Thanks
======
Valerio FerrucciTabasoft Sas
[EMAIL PROTECTED]  http://tabasoft.ancitel.it
[EMAIL PROTECTED]



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DB] number_format bug?

2001-02-20 Thread Valerio Ferrucci

Does someone know which configuration to change to fix this?

Lennin Arriola wrote:

 I was curious about it, so I tried it on my machine and I got "13,80"
 win2k+php4.  I think is about settings in your php configuration, although I
 don't still find a reference for it.

 Lennin Arriola
 [EMAIL PROTECTED]

 --
 PHP Database Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]

I call:

?
$a = 13.8;
$b = number_format($a, 2, ",", ".");
print($b);
?

the output is "13,00"

!!
any idea?
Is it a bug?

--

==========
Valerio FerrucciTabasoft Sas
[EMAIL PROTECTED]  http://tabasoft.ancitel.it
[EMAIL PROTECTED]



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DB] number formatting

2001-02-14 Thread Valerio Ferrucci

Hi,
I have a problem with numer formatting.
I want to have string from my numbers that have thousands separator '.',
decimal separator ',' and fixed  n decimal digit.

example:
num: 1285.3string 1.285,3
num: 12.1string 12,10
etc.

Is there some php function to do this?
Thanks
==
Valerio FerrucciTabasoft Sas
[EMAIL PROTECTED]  http://tabasoft.ancitel.it
[EMAIL PROTECTED]



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DB] number formatting

2001-02-14 Thread Valerio Ferrucci

This is not what I want.
I want only remove the right zeros, that is:
$a = 2.1;
number_format($a, 2, ",", "."); // 2,10
I want to display 2,1

$a = 2.00;
number_format($a, 2, ",", "."); // 2,00
I want to display 2

$a = 2.46;
number_format($a, 2, ",", "."); // 2,46
this is ok I want to display 2,46


Ben Cairns wrote:

 Say, you get the result into a variable called $foo
 You could use:
 floor($foo);
 this would round it DOWN to a whole number:
 EG
 2.1 returns 2
 2.9 returns 2

 -- Ben Cairns - Head Of Technical Operations
 intasept.COM
 Tel: 01332 365333
 Fax: 01332 346010
 E-Mail: [EMAIL PROTECTED]
 Web: http://www.intasept.com

 "MAKING sense of
 the INFORMATION
 TECHNOLOGY age
 @ WORK.."

 --
 PHP Database Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]

--

==
Valerio FerrucciTabasoft Sas
[EMAIL PROTECTED]  http://tabasoft.ancitel.it
[EMAIL PROTECTED]



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]