[PHP] Re: Problem with number_format

2004-05-25 Thread Martin Geisler
[EMAIL PROTECTED] (Curt Zirzow) writes: > * Thus wrote Martin Geisler ([EMAIL PROTECTED]): >> >> Caution >> >> When rounding on exact halves round() rounds down on evens and up >> on odds. [...] > > This is a documentation error. And is not on the

[PHP] Re: Simplistic PHP tutorial

2004-05-25 Thread Martin Geisler
tten a long time ago so it doesn't include the newer PHP4 stuff. -- Martin Geisler My GnuPG Key: 0xF7F6B57B PHP EXIF Library | PhpWeather | PhpShell http://pel.sf.net/| http://phpweather.net/ | http://gimpster.com/ Read/write EXIF da

[PHP] Re: Problem with number_format

2004-05-25 Thread Martin Geisler
e reason behind rounding half the values down and the other half up is to avoid the classical banking problem where if you always rounded down you would be stealing money from your customers, or if you always rounded up you would end up over time losing money. By averaging it out thr

[PHP] Re: DOM XML output whitespace

2004-05-24 Thread Martin Geisler
sk for: formatted output. -- Martin Geisler My GnuPG Key: 0xF7F6B57B PHP EXIF Library | PhpWeather | PhpShell http://pel.sf.net/| http://phpweather.net/ | http://gimpster.com/ Read/write EXIF data | Show current weather| A shell in a browser

Re: [PHP] sessions

2004-05-23 Thread Martin Geisler
tant foo...' message when I run it with PHP5: 'bar'); echo $array[foo] . "\n"; error_reporting(E_ALL); echo $array[foo] . "\n"; ?> -- Martin Geisler My GnuPG Key: 0xF7F6B57B PHP EXIF Library | PhpWeather |

[PHP] Re: Random Record Retrieval

2004-05-23 Thread Martin Geisler
/dev.mysql.com/doc/mysql/en/Mathematical_functions.html#IDX1363 for a description of RAND() in MySQL. -- Martin Geisler My GnuPG Key: 0xF7F6B57B PHP EXIF Library | PhpWeather | PhpShell http://pel.sf.net/| http://phpweather.net/ | http://gi

[PHP] Re: Newbie error with cookies and headers already declared

2004-05-22 Thread Martin Geisler
and 'time' is set. The session variables can be set and updated at any time because this only associates data with the session on the server side. -- Martin Geisler My GnuPG Key: 0xF7F6B57B PHP EXIF Library | PhpWeather

[PHP] Re: bg execution

2004-05-22 Thread Martin Geisler
nohup setsid php server.php > /dev/null 2>&1 &"'); I haven't had a need for something like this myself, but I think the ignore_user_abourt() function is what you need: http://php.net/manual/en/function.ignore-user-abort.php -- Martin Geisler