note 109122 added to function.phpinfo

From: Date: Thu, 21 Jun 2012 20:52:22 +0000
Subject: note 109122 added to function.phpinfo
Groups: php.notes 
Request: Send a blank email to php-notes+get-188740@lists.php.net to get a copy of this message
here you can notice that these numeric values of phpinfo are similar to certain things in the binary system: -1, coded in 7 digits: 111 1111 look at this: 1+2+4+8+16+32+64=127 unsigned,127 is: 111 1111 so, take a look at this: the way to get all function is to add all of them. zero is nothing.-1 is all. so you can pass option with a negative number. for example: <?php phpinfo(48) ?> is also: <?php phpinfo(-80) ?> 48 = 32 + 16 -80= 0 - 64 - 8 - 4 - 2 - 1 so you can see in negative mode it like that: not nothing not all (-1) don't forget it ! not option 64 not option 8 not option 4 not option 2 so, that's good if you don't want option 8, you will do this: not nothing(0) not all(-1) not option 8(-1) you got: <?php phpinfo(-9); ?> hope this will be useful, that's my 1rst post ^^ ---- Server IP: 69.147.83.197 Probable Submitter: 109.10.37.111 ---- Manual Page -- http://www.php.net/manual/en/function.phpinfo.php Edit -- https://master.php.net/note/edit/109122 Del: integrated -- https://master.php.net/note/delete/109122/integrated Del: useless -- https://master.php.net/note/delete/109122/useless Del: bad code -- https://master.php.net/note/delete/109122/bad+code Del: spam -- https://master.php.net/note/delete/109122/spam Del: non-english -- https://master.php.net/note/delete/109122/non-english Del: in docs -- https://master.php.net/note/delete/109122/in+docs Del: other reasons-- https://master.php.net/note/delete/109122 Reject -- https://master.php.net/note/reject/109122 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#188740) next »