[PHP] need manual reload on Mac client
Hi, I've a strange problem on this scenario: -SERVER MacOs X server w/ Apache's httpd2, MySql Max, PHP5 -CLIENT1 MacOs X w/ Netscape (JS enabled) -CLIENT2 Linux 2.6 w/ Netscape (JS enabled also) In a web application, I need to open a JS window within data came from MySql and processed by PHP. On CLIENT1 the JS window opens ok, but doesn't contain the right data, I need a manual reload to view them. On CLIENT2 all works well. I've seen MySql's log, in both cases queries are right and done in appropriate time. PHP code includes coockie. Any idea? Should be a browser (or JS) error or a PHP for Mac mistake? Regards, thanks in advance! Ciao, Francesco --- Scegli il tuo dominio preferito e attiva la tua email! Da oggi l'eMail di superEva e' ancora piu' veloce e ricca di funzioni! http://webmail.supereva.it/new/ --- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] GNU/Linux MacOsX Server different behaviour
Hi Brent, hi list, If you just run your command in the shell, you'll see that you get an operation not permitted error. Using the -r switch you can provide the seconds since Epoch to just display a 'date' you specify. For instance: date -r 97840 +%a Returns 'Mon' Ok, that's right! But I also notice this strange behaviour on Mac: date -r 049290 +%a returns 'Wed'...ok date -r 049280 +%a returns 'Tue'...ok date -r 049270 +%a returns 'Mon'...ok date -r 049260 +%a returns 'Sat'...ok date -r 049250 +%a returns 'Sun'...ok date -r 049240 +%a returns 'Fri'...no! I try for a test: date -r 049241 +%a returns 'Sat'...ok (1 are hhmms from the Epoch, is it true?) but: date -r 049231 +%a returns 'Fri'...ok date -r 049221 +%a returns 'Wed'...no! The behaviour is the same via Bash and via PHP script that invokes the shell...is it a my error or a X server bug? Regards, thanks! Ciao Francesco --- Leggi la tua email con il tuo cellulare! Grazie a I.Box puoi leggere la tua email di superEva da SMS e dalla segreteria! http://webmail.supereva.it/ibox/ --- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: Re: [PHP] GNU/Linux MacOsX Server different behaviour
Hi Brent, hi list, Oooopsss...;) date -r 049290 +%a returns 'Wed'...ok date -r 049280 +%a returns 'Tue'...ok date -r 049270 +%a returns 'Mon'...ok date -r 049260 +%a returns 'Sun'...ok ^^^ date -r 049250 +%a returns 'Sat'...ok ^^^ date -r 049240 +%a returns 'Fri'...no! Sorry! Ciao Francesco --- Leggi la tua email con il tuo cellulare! Grazie a I.Box puoi leggere la tua email di superEva da SMS e dalla segreteria! http://webmail.supereva.it/ibox/ --- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] GNU/Linux MacOsX Server different behaviour
Hi Brent, hi list, Oooopsss...;) date -r 049290 +%a returns 'Wed'...ok date -r 049280 +%a returns 'Tue'...ok date -r 049270 +%a returns 'Mon'...ok date -r 049260 +%a returns 'Sun'...ok ^^^ date -r 049250 +%a returns 'Sat'...ok ^^^ date -r 049240 +%a returns 'Fri'...no! Sorry! Ciao Francesco --- Leggi la tua email con il tuo cellulare! Grazie a I.Box puoi leggere la tua email di superEva da SMS e dalla segreteria! http://webmail.supereva.it/ibox/ --- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] GNU/Linux MacOsX Server different behaviour
Hi, I've an Apple G5 Xserve with MacOsX server 10.3 (Darwin 7.3.1) and PHP 4.3.2 and I need to run a PHP script containing this line: Linux: $temp=shell_exec(date 01/01/2004 +%a); Mac: $temp=shell_exec(date 010104 +%a); (man date says me how to write correctly date string in both cases) On Linux result is correct (e.g.'Mon'), on Mac output is empty. Is it a PHP problem, a php.ini lack (on Mac) or a permissions problem? Or anything else? Regards, thanks! Ciao Francesco --- Leggi la tua email con il tuo cellulare! Grazie a I.Box puoi leggere la tua email di superEva da SMS e dalla segreteria! http://webmail.supereva.it/ibox/ --- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php