Re: Bug #24491
| From: | Olivier Hill | Date: | Sat, 05 Jul 2003 17:07:03 +0000 |
| Subject: | Re: Bug #24491 | ||
| References: | 1 2 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-18032@lists.php.net to get a copy of this message | ||
Martin Jansen wrote:
As Jan has been updating the code of Net_Ping in the past, I guess he is the guy for that. Apart from that I don't have a FreeBSD box here to test this ;-).Neither have I... but: http://www.freebsd.org/cgi/man.cgi?query=ping Can always be useful ;) By the way, I could fix the script, but I'm really wondering what's the "best and cleaner" way to detect the OS via PHP. Is there any #ifdef style conditions, like preprocessing commands in C? I can't use "uname -s", it's not portable on Win32. Oliver -- GB/E/IT d+ s+:+ a-- C++$ UL++++$ P++++ L+++$ E- W++$ N- ?o ?K w--(---) !O M+$ V- PS+ PE- Y PGP t++ 5-- X+@ R- tv++ b++(+++) DI++++ D+ G++ e+>++ h(*) r y+(?)