|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-07-17 18:48 UTC] peter at 600ml dot com dot au
Use the eregi function on any php page running apache on linux and php version 4.21. Sorry I cant be more specific about the set-up. My knowledge of linux is limited and I didnt set-up the machine. It does run "Plesk" which is a gui server adminstration thingy. Apache will spit out the following error: "FATAL: emalloc(): Unable to allocate -193592 bytes" The page returned will contain no data. Internet explorer 6 will say "Page cannot be displayed". Netscape 4.* will say "page contains no data". Netscape 6 will do nothing. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 07 11:00:02 2026 UTC |
php configuration: -------------------------------------- './configure' '--with-apxs=../../psa/apache/bin/apxs' '--prefix=../../psa/apache' '--with-system-regex' '--with-config-file-path=/usr/local/psa/apache/conf' '--disable-debug' '--disable-pear' '--enable-sockets' '--enable-track-vars' '--without-gd' '--with-mysql=../../psa/mysql' '--with-iodbc=../odbcsdk' '--with-imap=../imap-2001a' '--with-pgsql=/usr/local/pgsql' -------------------------------------- here is a script that will crash the page: <?php function detect_browser() { if(eregi("(opera) ([0-9]{1,2}.[0-9]{1,3}){0,1}",$_SERVER['HTTP_USER_AGENT'],$match) || eregi("(opera/)([0-9]{1,2}.[0-9]{1,3}){0,1}",$_SERVER['HTTP_USER_AGENT'],$match)){ $BName = "Opera"; $BVersion=$match[2]; }else{ $BName = "nothing"; } return $BName; } $browser = detect_browser(); print $browser; ?> you can see it in action here: http://www.600ml.com.au/test2.php