FAQ

Search Discussions

124,398 discussions - 195,502 posts

  • Get Involved Help Adding a note to the manual Please read What not to enter we have many comments to moderate and there is an overwhelming number of users ignoring this important section. Good notes ...
    NiggerNigger
    May 31, 2016 at 8:12 pm
    May 31, 2016 at 8:26 pm
  • Access private members of parent classes; playing with the scopes: <?PHP class Grandparents{ private $__status1 = 'married'; } class Parents extends Grandparents{ private $__status2 = 'divorced'; } ...
    LucLuc
    May 31, 2016 at 4:44 am
    May 31, 2016 at 4:44 am
  • new to php, however the example provided does not work and I am confused on why? My example is I loaded images with the name defaulted to the model number of a part. The <img attempts to use the ...
    MpgarinMpgarin
    May 30, 2016 at 11:16 pm
    May 31, 2016 at 8:38 am
  • If $source is a valid folder, what do you think this does: <?php rename($source, '@'); ? In 99% of the time you will get a warning, and $source remains untouched. However, if you're working on ...

    May 30, 2016 at 4:16 pm
    May 30, 2016 at 4:16 pm
  • Note Submitter: info at pkrules dot in ---- Notice the way of using the loops:- <?php $arr=array("orange","banana","apple","raspberry"); $i=0; while($i < count($arr)){ $a=$arr[$i]; echo $a."<br / " ...
    CmbCmb
    May 30, 2016 at 2:05 pm
    May 30, 2016 at 2:05 pm
  • First off all, if you read this, please upvote the first comment on this list that states that “overloading” is a bad term for this behaviour. Because it REALLY is a bad name. You’re giving new ...

    May 29, 2016 at 10:13 pm
    May 29, 2016 at 10:13 pm
  • I've found an inconsistency with: Example #2 Abstract class example If you remove the default value of $separator <?php public function prefixName($name, $separator) { // ... } ? Then php will show ...

    May 29, 2016 at 1:26 pm
    May 29, 2016 at 1:26 pm
  • Using V8 Javascript engine as a PHP extension is the better way to reuse code from javascript library (ex. validations), to learn and to prepare migration from PHP to Node.js APIs. ---- Server IP ...
    PpkraussPpkrauss
    May 29, 2016 at 12:57 pm
    May 29, 2016 at 12:57 pm
  • There's currently an issue in the SQLite3 PHP binding (not SQLite3 itself) that causes all queries to be executed twice. It has apparently existed for quite a while. See here for more info ...

    May 29, 2016 at 7:08 am
    May 29, 2016 at 7:08 am
  • Following are the top 20 pages of the manual, sorted by the number of user notes contributed. These sections could use a polish, those notes represent 5.7% of the 26350 total user notes. Notes | Page ...
    PhpdocPhpdoc
    May 29, 2016 at 4:30 am
    May 29, 2016 at 4:30 am
  • A helper class to convert integer to binary strings and vice versa. Useful for writing and reading integers to / from files or sockets. <?php class int_helper { public static function int8($i) { ...
    Stanislav EckertStanislav Eckert
    May 29, 2016 at 3:15 am
    May 29, 2016 at 3:15 am
  • A helper class to convert integer to binary strings and vice versa. Useful for writing and reading integers to / from files or sockets. <?php class int_helper { public static function int8($i) { ...
    Stanislav EckertStanislav Eckert
    May 29, 2016 at 3:15 am
    May 29, 2016 at 3:15 am
  • Note, that the ArrayAccess class is not limited to scalar keys: <?php class A implements ArrayAccess { function offsetSet($a, $b) { var_dump(func_get_args()); } function offsetGet($a) { ...
    LucLuc
    May 28, 2016 at 9:51 pm
    May 28, 2016 at 9:51 pm
  • when using == and === against boolean e.g <?hp // this condition is always true if ("some string") { } // same thing with this $var = true; if ($var == "some string") { } // so better use this one if ...

    May 28, 2016 at 4:43 pm
    May 29, 2016 at 9:33 am
  • while the default is using RC4, it is possible to use other more secure algorithms. These are specified as the fifth parameter. Also, one needs to add an initialization vector (random bytes). Eg ...

    May 28, 2016 at 7:59 am
    May 28, 2016 at 7:59 am
  • The previous comment about installing the php-process package on Centos or RHEL might not be valid anymore. [root@nagios-test lilac]# yum install php-process Loaded plugins: product-id, security, ...
    Jeff SilvermanJeff Silverman
    May 28, 2016 at 12:43 am
    May 29, 2016 at 9:35 am
  • The manual says: "To use the session variables again, session_start() has to be called." this means that you need to call session_start() after session_destroy() example: First of all, if you called ...

    May 27, 2016 at 5:43 pm
    May 29, 2016 at 9:38 am
  • hi, i'm using in my hoting php 5.5 and i'm using the command mysqli_select_db, like this: <body <?php mysqli_connect ('localhost','belfastg_staf','V7939542v') or die ("No se puede conectar al ...
    Eromero69Eromero69
    May 27, 2016 at 3:41 pm
    May 27, 2016 at 4:22 pm
  • I always use this method to prevent a lot of errors function encrypt( $string ) { $algorithm = 'rijndael-128'; // You can use any of the available $key = md5( "mypassword", true); // bynary raw 16 ...
    LeilondLeilond
    May 27, 2016 at 3:40 pm
    May 27, 2016 at 3:40 pm
  • Addendum to Ian Co's "Steps to Install ImageMagick for Windows" specifically for Uniform Server Z and how to fix if you get an empty list of ImageMagick supported formats): Thanks to Ian Co's ...
    Laszlo PhpnetLaszlo Phpnet
    May 27, 2016 at 3:09 pm
    May 27, 2016 at 3:09 pm
  • Following on from Jeremy S's example. Instead of defining LDAP_OPT_DIAGNOSTIC_MESSAGE as 0x32 then using it, you can just use the option already defined as that value :) LDAP_OPT_ERROR_STRING ---- ...

    May 27, 2016 at 1:03 pm
    May 27, 2016 at 1:03 pm
  • This function may not return name fields in the order they appear in the certificate. For example, this CSR: -----BEGIN CERTIFICATE REQUEST----- ...

    May 27, 2016 at 12:51 pm
    May 27, 2016 at 12:51 pm
  • Since this was removed in PHP7. You can achieve the same output with the following code. function convertBinToMSSQLGuid($binguid) { $unpacked = unpack('Va/v2b/n2c/Nd', $binguid); return ...
    DarylblakeDarylblake
    May 26, 2016 at 9:32 pm
    May 26, 2016 at 9:32 pm
  • <a href=http://maipratco.octomix.info/mud-2016-05-24-5243/pomogaet-li-siroe-yaytso-pohudet.php посмотреть еще</a ---- Server IP: 64.71.164.2 Probable Submitter: 88.207.210.37 ---- Manual ...

    May 26, 2016 at 6:33 pm
    May 27, 2016 at 10:05 am
  • function returns 0 in case there was (not yet) any error code ---- Server IP: 72.52.91.14 Probable Submitter: 87.173.161.75 ---- Manual Page -- http://php.net/manual/en/function.socket-last-error.php ...
    GawendauniGawendauni
    May 26, 2016 at 9:18 am
    May 30, 2016 at 3:15 pm
  • Will result in a "Parse error: syntax error, unexpected '[', expecting ',' or ')' ... " <?php $fruits = ['apples', 'oranges']; $example = function () use ($fruits[0]) { echo $fruits[0]; } ...

    May 25, 2016 at 7:46 pm
    May 25, 2016 at 7:46 pm
  • So, your installation in general works so that you can display the output from a PHP script-- even phpinfo(); works. Great start. If not, you likely have bigger problems or are compiling imagick into ...
    Bradchesney79Bradchesney79
    May 25, 2016 at 5:58 pm
    May 25, 2016 at 5:58 pm
  • session_unset()å’Œsession_destroy()的对比 session_unset(): æ¸ ç©ºsession文件中的所有session data ä¸ä¼šåˆ é™¤session文件 当前脚本中的$_SESSION变量变成空数组 ...
    OhccOhcc
    May 25, 2016 at 2:44 pm
    May 25, 2016 at 5:21 pm
  • Unlike C++ and related languages, side effects in the left operand may NOT be used in the right operand. e.g. if ($a=1 && $a 0) will produce an unassigned error if $a has not previously been assigned ...
    MoschrisMoschris
    May 24, 2016 at 5:32 pm
    May 24, 2016 at 5:32 pm
  • Note Submitter: Mufularo ---- If you, like me, came here expecting adequate set of functions allowing smooth and easy work with the database without escaping, strip_slashing etc, and now in your ...
    CmbCmb
    May 24, 2016 at 1:25 pm
    May 24, 2016 at 1:25 pm
  • You can use string like array of char (like C) $a = "String array test"; var_dump($a); // Return string(17) "String array test" var_dump($a[0]); // Return string(1) "S" // -- With array cast -- ...
    GarbageGarbage
    May 24, 2016 at 10:02 am
    May 24, 2016 at 10:02 am
  • You can use string like array of char (like C) $a = "String array test"; var_dump($a); // Return string(17) "String array test" var_dump($a[0]); // Return string(1) "S" // -- With array cast -- ...
    GarbageGarbage
    May 24, 2016 at 9:59 am
    May 24, 2016 at 10:25 am
  • NOTICE: PHP 7 has error_clear_last now! ---- Server IP: 72.52.91.14 Probable Submitter: 121.218.82.21 ---- Manual Page -- http://php.net/manual/en/function.error-get-last.php Edit -- ...

    May 24, 2016 at 6:02 am
    May 24, 2016 at 1:21 pm
  • To clarify the previously posted note: Dots (.) and spaces ( ) in cookie names are being replaced with underscores (_). ---- Server IP: 72.52.91.14 Probable Submitter: 31.168.240.64 ---- Manual Page ...

    May 24, 2016 at 12:08 am
    May 24, 2016 at 12:08 am
  • while($radek = $stmt2- fetch()) { if(isset($_GET['check'.$radek['id_osoby']])){ $ids[$a]=$radek['id_osoby']; $a++; } } ---- Server IP: 72.52.91.14 Probable Submitter: 178.77.242.206 ---- Manual Page ...

    May 23, 2016 at 7:48 pm
    May 23, 2016 at 8:57 pm
  • Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean placerat. Mauris elementum mauris vitae tortor. Quisque porta. Nulla non lectus sed nisl molestie malesuada. Pellentesque pretium ...

    May 23, 2016 at 7:41 pm
    May 23, 2016 at 8:57 pm
  • Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean placerat. Mauris elementum mauris vitae tortor. Quisque porta. Nulla non lectus sed nisl molestie malesuada. Pellentesque pretium ...

    May 23, 2016 at 7:35 pm
    May 23, 2016 at 8:57 pm
  • Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean placerat. Mauris elementum mauris vitae tortor. Quisque porta. Nulla non lectus sed nisl molestie malesuada. Pellentesque pretium ...

    May 23, 2016 at 7:31 pm
    May 23, 2016 at 7:33 pm
  • Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean placerat. Mauris elementum mauris vitae tortor. Quisque porta. Nulla non lectus sed nisl molestie malesuada. Pellentesque pretium ...

    May 23, 2016 at 7:30 pm
    May 23, 2016 at 7:31 pm
  • zkouska dfsdfsdffffffffffffffffffffffffffffffffffffffffffffdfsdfdsfsdfsdfsdfsdfsdfsdfsdfsdfsdfsdfsdfsfdfsdfsdfsd ---- Server IP: 72.52.91.14 Probable Submitter: 178.77.242.206 ---- Manual Page -- ...

    May 23, 2016 at 7:28 pm
    May 23, 2016 at 7:30 pm
  • zkouska dfsdfsdffffffffffffffffffffffffffffffffffffffffffffdfsdfdsfsdfsdfsdfsdfsdfsdfsdfsdfsdfsdfsdfsfdfsdfsdfsd ---- Server IP: 72.52.91.14 Probable Submitter: 178.77.242.206 ---- Manual Page -- ...

    May 23, 2016 at 7:28 pm
    May 23, 2016 at 7:30 pm
  • zkouska dfsdfsdffffffffffffffffffffffffffffffffffffffffffffdfsdfdsfsdfsdfsdfsdfsdfsdfsdfsdfsdfsdfsdfsfdfsdfsdfsd ---- Server IP: 72.52.91.14 Probable Submitter: 178.77.242.206 ---- Manual Page -- ...

    May 23, 2016 at 7:28 pm
    May 23, 2016 at 7:30 pm
  • The binaries URL for the OpenSSL is broken, they moved it to this URL: https://www.openssl.org/source/ ---- Server IP: 72.52.91.14 Probable Submitter: 66.208.118.249 ---- Manual Page -- ...
    ReedysethReedyseth
    May 23, 2016 at 7:01 pm
    May 24, 2016 at 1:39 pm
  • You might want to have a look at our EasyMySQLi-Library that provides an easy access to MySQL-DBs utilizing MySQLi You can find everything here: https://git.firesplash.de/open-source/EasyMySQLi ...

    May 23, 2016 at 3:43 pm
    May 24, 2016 at 1:28 pm
  • Fixed version (patch hexdec conversion + version_compare usage) <?php // OPENSSL_VERSION_NUMBER parser, works from OpenSSL v.0.9.5b+ (e.g. for use with version_compare()) // OPENSSL_VERSION_NUMBER is ...
    FontajosFontajos
    May 23, 2016 at 12:03 pm
    May 23, 2016 at 12:03 pm
  • i try to use class B to extends A to get the results,whta i know result is jim,b,but the result layout is b,jim,b.when i change the class name or function name to another like Class C or function ...
    FlyphpFlyphp
    May 23, 2016 at 7:27 am
    May 23, 2016 at 10:42 am
  • To access $_POST, $_GET, etc, use the function filter_input(TYPE, varname, filter) to ensure that your data is clean. Also, I was brought up to believe that modifying superglobals is a BAD idea. I ...

    May 22, 2016 at 8:45 pm
    May 22, 2016 at 8:45 pm
  • array_slice($array, $start, $length) about the array_slices's $length argument: a positive decimal number is rounded down (e.g. 1.5 - 1), a negative decimal is rounded up (e.g. -0.5 - 0) ---- Server ...
    BarakpinchBarakpinch
    May 22, 2016 at 6:37 am
    May 22, 2016 at 6:37 am
  • Following are the top 20 pages of the manual, sorted by the number of user notes contributed. These sections could use a polish, those notes represent 5.7% of the 26343 total user notes. Notes | Page ...
    PhpdocPhpdoc
    May 22, 2016 at 4:32 am
    May 22, 2016 at 4:32 am
  • <?php $var = 1; function foo() { $var = &$GLOBALS['var']; var_dump($var); } function bar() { global $var; // they are the same. var_dump($var); } foo(); bar(); var_dump($var); ? In a function, ...

    May 21, 2016 at 4:50 pm
    May 21, 2016 at 4:50 pm
Group Navigation
period‹ prev | Latest | first ›
Group Overview
groupphp-notes @
categoriesphp
discussions124,398
posts195,502
users66,397
websitephp.net

Top users

Danbrown: 18406 posts Nlopess: 9561 posts : 6493 posts Php-general: 6422 posts Didou: 4703 posts Betz: 4502 posts Ronabop: 3811 posts Bjori: 3453 posts Jimw: 3189 posts Tularis: 2531 posts Aidan: 2522 posts Felipe: 2441 posts Sniper: 2285 posts Zak: 2226 posts Anonymous: 2176 posts Vincent: 2113 posts Thiago: 2094 posts Philip: 1929 posts Tomsommer: 1731 posts Jmcastagnetto: 1668 posts
show more
Archives