|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2000-07-23 13:35 UTC] stas at cvs dot php dot net
[2000-07-23 18:42 UTC] liz at xcalibur dot co dot uk
[2001-04-24 17:22 UTC] liz at xcalibur dot co dot uk
[2001-04-28 12:51 UTC] jmoore@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Nov 04 23:00:01 2025 UTC |
I have compiled PHP with ./configure' '--width-apache=/usr/src/apache-3.1.12' '--with-mysql' '--enable-track-vars' '--disable-debug' '--enable-calendar' '--enable-dbase' '--enable-ftp' '--enable-trans-sid' '--enable-inline-optimization' '--enable-discard-path' I have tried every which way but loose to get this to work, even tried compiling up a CGI version. (as above but without apache) OK, when I run it as a module, using the code for the get_browser() in the helpfile on here aka <?php function list_array( $browser ) { while ( list( $key, $value ) = each( $browser ) ) { $str .= "<b>$key:</b> $value<br>\n"; } return $str; } echo "$HTTP_USER_AGENT<hr>\n"; $browser = get_browser(); echo list_array( (array) $browser ); ?> All I get is Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0) -------------------------------------------------------------------------------- 0: Whatever the browser/os is, I downloaded the browser.ini file from cyberscap I think - whereever it was PHP suggested, and I know its reading it, as if I break the ini file by making false entries it tells me - I checked that much The CGI version does a segmentation fault. A working example is on http://www.xcalibur.co.uk/browser.html It also did it with ./configure' '--width-apache=/usr/src/apache-3.1.12'