FAQ

Search Discussions

127 discussions - 230 posts

  • i did the same thing mentioned above but the following code not working. Why? --------------------------------------------------------- class Alfa1 { public static function falfa() { echo "In Alfa" ...
    Raj AdityaRaj Aditya
    Apr 9, 2014 at 12:45 pm
    Sep 15, 2014 at 7:57 am
  • <?php $a=23; $b='php'; if(is_int($a)) { echo ++$b; //Out put phq } ? So, String also incrementing , cooll ---- Server IP: 72.52.91.14 Probable Submitter: 113.210.134.211 ---- Manual Page -- ...
    ShojiburShojibur
    Apr 27, 2014 at 4:48 am
    Aug 5, 2014 at 11:28 am
  • This is somehow different from other approaches to satisfy needs of those not having a pleasure to deal with PHP 5. I've minimized need of using loops, so I use only one, to grab the whole array ...
    JakubplusJakubplus
    Apr 7, 2014 at 10:51 am
    Jul 1, 2014 at 5:38 pm
  • hash_equals() has actually been implemented as hash_compare() ---- Server IP: 194.50.97.14 Probable Submitter: 194.50.97.1 ---- Manual Page -- http://php.net/manual/en/migration56.new-features.php ...
    Php Net-9erPhp Net-9er
    Apr 4, 2014 at 8:07 am
    Jun 20, 2014 at 11:40 am
  • php is the best language for all kinds of website development. there are many cms which are developed in php like joomla. and one of great joomla site is http://www.hup.edu.pk ---- Server IP ...
    Manzoor_hussain739Manzoor_hussain739
    Apr 20, 2014 at 12:08 pm
    May 17, 2014 at 11:51 am
  • Imagick::colorFloodFillImage is depreciated. You should use Imagick::paintFloodfillImage (replaced by Imagick::floodFillPaintImage in ImageMagick 6.3.8) ---- Server IP: 72.52.91.14 Probable ...
    MemmieMemmie
    Apr 29, 2014 at 9:39 am
    Apr 29, 2014 at 9:40 am
  • <html <head <title drikhoek </title </head <body bgcolor="#99FF66" <form action="driehoek.php" method="post" <input type="text" name="breedte" / <input type="submit" value="klikken" / </form <? ...
    VincentamorijVincentamorij
    Apr 15, 2014 at 2:22 pm
    Apr 15, 2014 at 2:23 pm
  • this is wonderful tutorial .. i read it 3 times and get a fantastic results and sure i put acopy of this lesson on my site here https://www.youtube.com/watch?v=q5oTyUmsfUM arab-recovery.com ---- ...
    Mahgoubm66Mahgoubm66
    Apr 5, 2014 at 4:10 pm
    Apr 5, 2014 at 5:27 pm
  • reparatii calculatoare http://www.112pc.ro there might be an error on your last line ---- Server IP: 72.52.91.14 Probable Submitter: 5.12.196.243 ---- Manual Page -- ...
    ContactContact
    Apr 4, 2014 at 12:31 am
    Apr 4, 2014 at 11:09 am
  • Use this small snippet inside your bootstrap in order to always have a way to know reliably what was the last page of your site that the user have visited, without having to use ...
    M AgkopianM Agkopian
    Apr 30, 2014 at 10:29 pm
    Apr 30, 2014 at 10:29 pm
  • In the options, "logical disjunction" means "or" - for example: filter_var($somestring ,FILTER_SANITIZE_STRING, FILTER_FLAG_STRIP_LOW | FILTER_FLAG_STRIP_HIGH); ---- Server IP: 72.52.91.14 Probable ...
    GeorgeGeorge
    Apr 30, 2014 at 10:08 pm
    Apr 30, 2014 at 10:08 pm
  • Note Submitter: <span class="m_body_email_addr" title="0a57631eb1e5fb42fd0371f954836486" duncanmadcow@hotmail.com</span ---- I have tried the example given by <span class="m_body_email_addr" ...
    NikicNikic
    Apr 30, 2014 at 3:43 pm
    Apr 30, 2014 at 3:43 pm
  • Note Submitter: <span class="m_body_email_addr" title="c459977a10628ebf55bbafe191f2191f" marvinalone@gmx.net</span ---- Nice to know is this: If you call a function giving an unset variable, it will ...
    NikicNikic
    Apr 30, 2014 at 3:41 pm
    Apr 30, 2014 at 3:41 pm
  • Note Submitter: <span class="m_body_email_addr" title="1b6cc34fe78be333be83ad14acf4bb14" kop@meme.com</span ---- See also about controlling the generation of error messages by putting @ in front of ...
    NikicNikic
    Apr 30, 2014 at 3:30 pm
    Apr 30, 2014 at 3:30 pm
  • Note Submitter: <span class="m_body_email_addr" title="124965424165e250a6d5289b8233726f" email@fake.com</span ---- You can set variable DEFAULT values for a function in the (). These will be ...
    NikicNikic
    Apr 30, 2014 at 3:29 pm
    Apr 30, 2014 at 3:29 pm
  • I needed a function, that creates a letter range with arbitrary length. You specify via the $length parameter, how many entries you need. Logic is analog to the logic of the column-titles in a ...
    LsblsbLsblsb
    Apr 30, 2014 at 3:09 pm
    Apr 30, 2014 at 3:09 pm
  • Please pay attention that ftp_rawlist() function returns empty result if there is a folder with space. You must backslash it with addcslashes() function. IMPORTANT: at the same time any other ...
    AdminAdmin
    Apr 29, 2014 at 5:34 pm
    Apr 29, 2014 at 5:34 pm
  • Example of using base_convert to generate random passwords function random_password() { $rvalue1 = mt_rand(100,999); $rvalue2 = time(); $rvalue3 = mt_rand(1000,9999); $rvalue4 = mt_rand(1,9) ...
    AndrewAndrew
    Apr 29, 2014 at 3:50 pm
    Apr 29, 2014 at 3:50 pm
  • On windows servers, open your php.ini (which should be in Program Files/PHP), and simply uncomment the extension. extension=php_intl.dll Restart IIS Webserver - done. ---- Server IP: 72.52.91.14 ...
    JonwebbJonwebb
    Apr 29, 2014 at 2:42 pm
    Apr 29, 2014 at 2:42 pm
  • <?php class A{ public $my_var; function __construct() { $this- my_var = 'aaa'; } } $a = new A; $b = clone $a; $b- my_var = 'bbb'; echo($a- my_var); // 'aaa' echo($b- my_var); // 'bbb' $c = new A; $d ...
    ObaidmaroofObaidmaroof
    Apr 29, 2014 at 2:01 pm
    Apr 29, 2014 at 2:01 pm
  • My favourite use of this function is converting a string to an array, trimming each line and removing empty lines: <?php $array = array_filter(array_map('trim', explode("\n", $string)), 'strlen'); ? ...
    Marc GrayMarc Gray
    Apr 29, 2014 at 10:44 am
    Apr 29, 2014 at 10:44 am
  • if you want to daysychain a filehandle through some functions and each function is allowed to close th file you might look in a following function first, if the handle is still valid. Opening a file, ...
    Tom Vom BergTom Vom Berg
    Apr 28, 2014 at 8:38 pm
    Apr 28, 2014 at 8:38 pm
  • if you are used to reply with qualified error messages by using "track_errors = 1" and $php_errormsg, flock() will nark you, if you use LOCK_NB . If flock() fails due to LOCK_NB $php_errormsg will ...
    Tom Vom BergTom Vom Berg
    Apr 28, 2014 at 6:47 pm
    Apr 28, 2014 at 6:47 pm
  • Hola, tengo una duda en la documentacion de fetch_objetc establece que las propiedades del objeto estan definidas antes de llamar al constructor de la clase a instanciar, pero tengo un script que me ...
    LuismacayoLuismacayo
    Apr 28, 2014 at 5:32 pm
    Apr 28, 2014 at 5:32 pm
  • And also possible as..... <?php // Hack for old php versions to use boolval() if (!function_exists('boolval')) { function boolval($val) { return ($val == true); } } ? I really don't see the point of ...
    BozzolonospamBozzolonospam
    Apr 28, 2014 at 3:36 pm
    Apr 28, 2014 at 3:36 pm
  • Note Submitter: <span class="m_body_email_addr" title="f53b559749865e4db31a1a169a85333c" aaron@kanuck.net</span ---- "Note that the localized format referred to in this list as "SOAP" is the ISO 8601 ...
    SalatheSalathe
    Apr 28, 2014 at 3:06 pm
    Apr 28, 2014 at 3:06 pm
  • If you want to run through large arrays don't use count() function in the loops , its a over head in performance, copy the count() value into a variable and use that value in loops for a better ...
    OnlyrangaOnlyranga
    Apr 28, 2014 at 2:14 am
    Apr 28, 2014 at 2:14 am
  • A note on top() and bottom(): Picture the doubly-linked list (or queue) in the same way that you would a stack. Say you started with an empty queue, and added five values: $myList = new ...
    TstirratTstirrat
    Apr 27, 2014 at 10:27 pm
    Apr 27, 2014 at 10:27 pm
  • with reference to the problem of mathematic equations validation , as an operator is not a good idea... i've removed the comma from operators and added the optional group (,(?1))? to validate ...
    AndreaAndrea
    Apr 27, 2014 at 3:03 pm
    Apr 27, 2014 at 3:03 pm
  • Sorry, some corrections to my note... I've: * removed the minus sign -? at the beginning and readded the |pi|π at the end like in previous examples; * added some math functions; * added the , in the ...
    AndreaAndrea
    Apr 27, 2014 at 10:04 am
    Apr 27, 2014 at 10:04 am
  • Can anyone tell me: Why PHP + Apache 2.2.x installation is such a big deal. I am a Java Developer and currently I am trying to learn PHP, but I am not able to install PHP and use it the way we use ...
    JangirashokJangirashok
    Apr 27, 2014 at 5:15 am
    Apr 27, 2014 at 5:15 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 6.2% of the 23901 total user notes. Notes | Page ...
    PhpdocPhpdoc
    Apr 27, 2014 at 4:31 am
    Apr 27, 2014 at 4:31 am
  • You have been missed semicolon. Keep in mind if you did not put closing tag, must put semicolon at the end , <?php echo '<p But html is still visible</p '; ---- Server IP: 72.52.91.14 Probable ...
    ShojiburShojibur
    Apr 27, 2014 at 4:30 am
    Apr 27, 2014 at 4:30 am
  • Modified version of Daniele Mams's answer: I change the $number definition to accept scientific notation like in: http://stackoverflow.com/questions/638565/parsing-scientific-notation-sensibly <?php ...
    AndreaAndrea
    Apr 26, 2014 at 8:10 pm
    Apr 26, 2014 at 8:10 pm
  • <?php // NOTE: When accessing a element from the above phpinfo_array(), you can do: $array = phpinfo_array(); // This will work echo $array["General"]["System "]; // This should work also, but it ...
    CbarCbar
    Apr 26, 2014 at 1:05 am
    Apr 26, 2014 at 1:05 am
  • in order to export a private key to pkcs12 format, the input certificate must contain both private and associated public key in PEM format , -----BEGIN RSA PRIVATE KEY----- -----END RSA PRIVATE ...
    IsmaelIsmael
    Apr 24, 2014 at 9:38 am
    Apr 24, 2014 at 9:38 am
  • I really need to make the "xml_parse_into_array" function, and I figured out this "recursive function" solution. (I just test that with ISO-8859-1 charset, but I think it works with ASCII and UTF-8) ...
    Gramo GnuGramo Gnu
    Apr 24, 2014 at 4:51 am
    Apr 24, 2014 at 4:51 am
  • Here are some more experiments on this relatively new and extremely handy function. <?php $string = 'I have never seen ANYTHING like that before! My number is "4670-9394".' ...
    LevimLevim
    Apr 22, 2014 at 4:06 am
    Apr 22, 2014 at 4:06 am
  • A great implementation of crypt, that will generate the password and a unique salt used for it for you to easily add the data to your Database. It is called Encryptor and it is available on github ...
    ChrisChris
    Apr 21, 2014 at 5:00 pm
    Apr 21, 2014 at 5:00 pm
  • Note the order of operations in that exponentiation operator, as it was opposite of what my first expectation was: <?php // what I had expected, // evaluating left to right, // since no parens were ...
    AshnazgAshnazg
    Apr 21, 2014 at 3:07 pm
    Apr 21, 2014 at 3:07 pm
  • $string = 'srikanth'; $length = strlen($string); for($i=$length-1;$i =0;$i--){ echo $string[$i]; } ---- Server IP: 72.52.91.14 Probable Submitter: 14.141.35.238 ---- Manual Page -- ...
    Vsrikanth02Vsrikanth02
    Apr 21, 2014 at 10:56 am
    Apr 21, 2014 at 10:56 am
  • $string = 'srikanth'; $length = strlen($string); for($i=$length-1;$i =0;$i--){ echo $string[$i]; } ---- Server IP: 72.52.91.14 Probable Submitter: 14.141.35.238 ---- Manual Page -- ...
    Vsrikanth02Vsrikanth02
    Apr 21, 2014 at 10:55 am
    Apr 21, 2014 at 10:55 am
  • $str = "sheik"; $arr1 = str_split($str); $revstr=''; $i=count($arr1); while($i = 0){ $revstr .= $arr1[$i]; $i--; } echo $revstr; ---- Server IP: 103.21.58.218 Probable Submitter: 14.141.35.238 ---- ...
    Sheik KsSheik Ks
    Apr 21, 2014 at 9:07 am
    Apr 21, 2014 at 9:07 am
  • contrary to what is stated here on the comments on thow to use the options for filters, there is no range option or default... in fact, there is not much option AT ALL. It is not mentioned in the ...
    Descartavel1+phpDescartavel1+php
    Apr 21, 2014 at 6:50 am
    Apr 21, 2014 at 6:50 am
  • With respect to using the ternary operator as a 'null-coalescing' operator: expr1 ?: expr2, note that expr1 is evaluated only once. ---- Server IP: 64.71.164.2 Probable Submitter: 101.222.228.220 ...
    SgurukrupaSgurukrupa
    Apr 21, 2014 at 6:23 am
    Apr 21, 2014 at 6:23 am
  • I have included the PThread library dll in PHP 5.3 directory. And i also add an extension in my php.ini file. But when i write a simple program. PHP process gets killed when creating a Thread class ...
    Logi89inLogi89in
    Apr 21, 2014 at 6:21 am
    Apr 21, 2014 at 6:21 am
  • Here are two methods for converting the 'type' and 'flags' attributes to text for debugging purposes. They both use the predefined MYSQLI_ constants to generate the text. <?php public static function ...
    AndreAndre
    Apr 20, 2014 at 7:55 am
    Apr 20, 2014 at 7:55 am
  • Here are two methods for converting the 'type' and 'flags' attributes to text for debugging purposes. They both use the predefined MYSQLI_ constants to generate the text. <?php public static function ...
    AndreAndre
    Apr 20, 2014 at 7:54 am
    Apr 20, 2014 at 7:54 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 6.2% of the 23869 total user notes. Notes | Page ...
    PhpdocPhpdoc
    Apr 20, 2014 at 4:30 am
    Apr 20, 2014 at 4:30 am
  • This seems to work as expected for me - allowing me to get the content from a curl_multi operation into variables : (Thanks go to many other notes in related documentation (there is much ...
    MichaelMichael
    Apr 19, 2014 at 6:28 pm
    Apr 19, 2014 at 6:28 pm
Group Navigation
period‹ prev | Apr 2014 | next ›
Group Overview
groupphp-notes @
categoriesphp
discussions127
posts230
users112
websitephp.net

112 users for April 2014

: 76 posts Tularis: 68 posts Nikic: 14 posts Salathe: 10 posts Mikemike: 6 posts Levim: 5 posts Phpdoc: 4 posts Dm: 3 posts Tom Vom Berg: 3 posts Andrea: 3 posts Andre: 3 posts Lee Howarth 90: 3 posts Php: 2 posts Aasasdasdf: 2 posts Shojibur: 2 posts Jakubplus: 2 posts V14t: 2 posts Memmie: 2 posts Vincentamorij: 2 posts Vsrikanth02: 2 posts
show more
Archives