FAQ

Search Discussions

112 discussions - 188 posts

  • You can use generators to do lazy loading of lists. You only compute the items that are actually used. However, when you want to load more items, how to cache the ones already loaded? Here is how to ...
    InfoInfo
    Jan 23, 2015 at 3:18 pm
    Feb 6, 2015 at 1:11 pm
  • Here is a useful code to see all elements of $_SERVER array <?php foreach ($_SERVER as $key= $value) { echo $key."=".$value; echo "<br <br "; } ? ---- Server IP: 72.52.91.14 Probable Submitter ...
    Shadi1024Shadi1024
    Jan 12, 2015 at 7:58 pm
    Apr 27, 2016 at 4:51 am
  • thanks for nice information about php… www.pheunix.in ---- Server IP: 72.52.91.14 Probable Submitter: 117.220.117.209 ---- Manual Page -- http://php.net/manual/en/tutorial.forms.php Edit -- ...
    InfoInfo
    Jan 12, 2015 at 5:26 am
    Feb 10, 2015 at 4:54 pm
  • how can we call javascript using ajax .how can find variables,i can't understand. for php i have visit . pheunix.co.in ---- Server IP: 72.52.91.14 Probable Submitter: 117.207.80.231 ---- Manual Page ...
    MailMail
    Jan 15, 2015 at 12:26 pm
    Feb 10, 2015 at 4:54 pm
  • thanks for nice information about php… www.syspoly.com ---- Server IP: 72.52.91.14 Probable Submitter: 117.220.117.209 ---- Manual Page -- http://php.net/manual/en/tutorial.forms.php Edit -- ...
    InfoInfo
    Jan 12, 2015 at 10:53 am
    Feb 10, 2015 at 4:52 pm
  • Form di login e registrazione con php Salve a tutti, rivelo di non essere esperto il linguaggio informatico. Vorrei inserire una pagina di login e registrazione nel mio sito altervista in modo che ...
    InteressaInteressa
    Jan 31, 2015 at 4:25 pm
    Feb 6, 2015 at 1:36 pm
  • is there any way to compress files from remote server into multipart compressed file in personal server? ---- Server IP: 72.52.91.14 Probable Submitter: 68.68.99.54 ---- Manual Page -- ...
    Rokibhasansagar2014Rokibhasansagar2014
    Jan 30, 2015 at 9:10 pm
    Feb 6, 2015 at 1:35 pm
  • I just want to add, becuase I see here lots of wrong formated headers. 1. All used headers have first letters uppercase, so you MUST follow this. For example: Location, not location Content-Type, not ...
    Nakkers1Nakkers1
    Jan 29, 2015 at 10:11 pm
    Feb 6, 2015 at 1:34 pm
  • I came up with another approach to work around the problem of browsers caching WWW authentication credentials and creating logout problems. While most browsers have some kind of way to wipe this ...
    NakkersNakkers
    Jan 29, 2015 at 9:32 pm
    Feb 6, 2015 at 1:34 pm
  • So you have an application in your web space, with a URL such as this: http://<host /<installation_path / and pages such as http://<host /<installation_path /subfolder1/subfolder2/page.php You have a ...
    NakformeNakforme
    Jan 29, 2015 at 9:29 pm
    Feb 6, 2015 at 1:34 pm
  • Note that, this function results the same when a class extends another class. Example: <?php class myClass extends stdClass {} $a = new stdClass; $b = new myClass; var_dump(spl_object_hash($a)) ...
    ThomasjiaoThomasjiao
    Jan 29, 2015 at 1:32 pm
    Feb 6, 2015 at 1:28 pm
  • Variable functions can work with language constructs such as echo, print. Utilize wrapper functions to make use of any of these constructs as variable functions. you can see my example below <?php ...
    CatchyouhandCatchyouhand
    Jan 29, 2015 at 9:01 am
    Feb 6, 2015 at 1:23 pm
  • Checked with version 5.5.12: It works fine with filenames with utf-8 characters, pathinfo will strip them away: print_r(pathinfo("/mnt/files/é£›å ’æ¨‚åœ˜å ‰èŒ«.mp3")); .. will display: Array ( ...
    CmartinezmeCmartinezme
    Jan 27, 2015 at 12:46 pm
    Feb 6, 2015 at 1:19 pm
  • For Spain: echo number_format(123456789, 0, '', '.'); // print 123.456.789 ---- Server IP: 72.52.91.14 Probable Submitter: 88.0.107.61 ---- Manual Page -- ...
    Ruben ArtsRuben Arts
    Jan 27, 2015 at 8:58 am
    Feb 6, 2015 at 1:18 pm
  • I find should add $stmt- store_result() after $stmt- execute(), otherwise you can't get right results when use $stmt- affected_rows ---- Server IP: 72.52.91.14 Probable Submitter: 116.24.133.255 ---- ...
    GerbawnGerbawn
    Jan 27, 2015 at 6:47 am
    Feb 6, 2015 at 1:17 pm
  • php means Peace Honor and Prosperity, at least to me. ---- Server IP: 72.52.91.14 Probable Submitter: 119.148.16.250 ---- Manual Page -- http://php.net/manual/en/intro-whatis.php Edit -- ...
    SupportSupport
    Jan 27, 2015 at 6:00 am
    Feb 6, 2015 at 1:17 pm
  • Example #1 to work, you need ini_set('session.use_only_cookies', 'Off'); ini_set('session.use_trans_sid', 'On'); before session_start(). ---- Server IP: 72.52.91.14 Probable Submitter: 122.1.103.9 ...
    YohgakiYohgaki
    Jan 27, 2015 at 4:11 am
    Feb 6, 2015 at 1:16 pm
  • To remove all of a particular attribute, feed it an empty array. For example, to remove all members from a group: ldap_mod_del($ldapconn,$groupDN,array("member" = array())); ---- Server IP ...
    GsgleasonGsgleason
    Jan 26, 2015 at 8:04 pm
    Feb 6, 2015 at 1:16 pm
  • Be aware that although json_encode() is available in PHP 5.2, json_last_error() will throw an error in that version because it doesn't exist until 5.3. ---- Server IP: 72.52.91.14 Probable ...
    BobrayBobray
    Jan 26, 2015 at 7:51 pm
    Feb 6, 2015 at 1:15 pm
  • For get the same but for UTF-8 : iconv('UCS-4LE', 'UTF-8', pack('V', $int)); ---- Server IP: 72.52.91.14 Probable Submitter: 91.212.144.2 ---- Manual Page -- http://php.net/manual/en/function.chr.php ...
    AndrescevpAndrescevp
    Jan 26, 2015 at 5:00 pm
    Feb 6, 2015 at 1:15 pm
  • Maybe use xampp for a complete set of Apache server MySQL and Other ? ---- Server IP: 72.52.91.14 Probable Submitter: 113.199.233.25 ---- Manual Page -- ...
    SubtlenvSubtlenv
    Jan 25, 2015 at 7:41 am
    Feb 6, 2015 at 1:13 pm
  • <?php echo getrandmax(); // will return the largest number that rand() function would return // output: 32767 ---- Server IP: 72.52.91.14 Probable Submitter: 109.110.115.176 ---- Manual Page -- ...
    DavidkevorkDavidkevork
    Jan 23, 2015 at 8:57 pm
    Feb 6, 2015 at 1:11 pm
  • <?php echo getrandmax(); // will return the largest number that rand() function would generate // output: 32767 ? ---- Server IP: 72.52.91.14 Probable Submitter: 109.110.115.176 ---- Manual Page -- ...
    DavidkevorkDavidkevork
    Jan 23, 2015 at 8:55 pm
    Feb 6, 2015 at 1:11 pm
  • <?php $questions=array( "How many states are there in your country" = array ("21","59","36","30"), "What is the capital city of Anambra state Awka" = array("Aniocha","Ogidi","Owerri"), "What year was ...
    KeremcKeremc
    Jan 23, 2015 at 12:22 pm
    Feb 6, 2015 at 1:08 pm
  • Note that you can pass an SplFileInfo object as either argument: <?php # Assume a file 'foo' in the current directory rename('foo', new SplFileInfo('bar')); # foo is now bar! rename(new ...
    MikeMike
    Jan 23, 2015 at 9:31 am
    Feb 6, 2015 at 1:07 pm
  • Today i became in a fight calculating the execution time in microseconds. The thing is that webservers can be configured differently which causes different behavior on different webservers. I never ...
    InfoInfo
    Jan 22, 2015 at 1:52 pm
    Feb 6, 2015 at 1:03 pm
  • ref: Developers with a C background may expect pass by reference semantics for arrays. It may be surprising that pass by value is used for arrays just like scalars. Objects are implicitly passed by ...
    Meeme9Meeme9
    Jan 22, 2015 at 12:14 pm
    Feb 6, 2015 at 1:02 pm
  • No one of the installation packages for windows contains the file "php5apache2_2.dll" or "php5apache2.dll". I am running Apache 2 on windows ---- Server IP: 72.52.91.14 Probable Submitter ...
    Slav4o_1Slav4o_1
    Jan 22, 2015 at 11:43 am
    Feb 6, 2015 at 1:02 pm
  • this is stupidest `feature` of php ever ---- Server IP: 72.52.91.14 Probable Submitter: 78.56.118.130 ---- Manual Page -- http://php.net/manual/en/language.operators.execution.php Edit -- ...
    FakeFake
    Jan 22, 2015 at 8:12 am
    Feb 6, 2015 at 1:01 pm
  • I want ask two question for users who used this function. 1. Did you expect that escape symbols nor automatically removed from output array? I am expected that "\"" should be string(1) """ not as ...
    Mikhail V GavrilovMikhail V Gavrilov
    Jan 22, 2015 at 7:56 am
    Feb 6, 2015 at 12:59 pm
  • La función numRows en SQLite3 no sirve lo mas viable es usar la siguiente expresión para contar el contenido de filas existentes en una tabla SQLite3: $db = new SQLite3('database.db') ...
    ContactoContacto
    Jan 22, 2015 at 4:20 am
    Feb 6, 2015 at 12:58 pm
  • I was using the following function to normalize a string. The function `strtr` wasn't working. I had to add a `header` with charset: ISO-8859-1 to make it work. PS: I had to reduce the size of the ...
    WissamelkikWissamelkik
    Jan 21, 2015 at 12:32 pm
    Feb 6, 2015 at 12:56 pm
  • All kinds of circumstances can lead a person to have a bad credit rating. In these difficult financial times, http://directsamedaypaydayloans.co.uk , http://www.instantpaydayonlowintrest.co.uk , ...
    MonsthomsMonsthoms
    Jan 27, 2015 at 4:18 am
    Jan 27, 2015 at 4:20 am
  • Though this page claims hash is part of core , you will not have it if you use the "--disable-all" switch in your config. In this case it is necessary to also use "--enable-hash" to access the ...
    RdlowreyRdlowrey
    Jan 20, 2015 at 6:37 pm
    Jan 21, 2015 at 5:47 am
  • For the famous problem of '&amp;'... I was disturbed with <span class="m_body_email_addr" title="dc81a151a2e68360f919e82174ffa7b2" pinkgothic@gmail.com</span but i wanted to find why. (...noob ^^) In ...
    Patrice Leblanc ProPatrice Leblanc Pro
    Jan 19, 2015 at 8:50 pm
    Jan 19, 2015 at 10:26 pm
  • HR+cPzuNQZh8/6u+9gF/6ncJruVs8B5AWC4+yk+CkvsVjCpZuFqxhexfkkuKByhIoAjesmbaB2XF 6H7adctdzaTyCwGVPOFOxNGDG8jeb6MDSoLI9zyXCoaThpYP5E9WHAct+nUB+1wYGe/kHzV0Ucgo ...
    Phpir469Phpir469
    Jan 19, 2015 at 5:40 pm
    Jan 19, 2015 at 10:25 pm
  • import java.util.Scanner; import java.lang.*; public class stud{ private String name; private int roll; private int age; Scanner no = new Scanner(System.in); public stud() {name=null; roll=0; age=0 ...
    Aneesingh0957Aneesingh0957
    Jan 19, 2015 at 3:23 pm
    Jan 19, 2015 at 10:25 pm
  • import java.util.Scanner; import java.lang.*; public class stud{ private String name; private int roll; private int age; Scanner no = new Scanner(System.in); public stud() {name=null; roll=0; age=0 ...
    Aneesingh0957Aneesingh0957
    Jan 19, 2015 at 3:23 pm
    Jan 19, 2015 at 10:25 pm
  • Neden Dokümanların tamamı türkçe deÄŸil sitemdeli gibi mi olacak acaba http://www.oyun-cenneti.com ---- Server IP: 72.52.91.14 Probable Submitter: 88.253.115.16 ---- Manual Page -- ...
    OkanOkan
    Jan 17, 2015 at 1:24 pm
    Jan 17, 2015 at 6:32 pm
  • Am trying to create a 'generic is_set function' that i can pass any either a variable or multi-variables or an array and will return true if what is passed to it is set and false if what is passed to ...
    Kazypac2009Kazypac2009
    Jan 16, 2015 at 8:46 pm
    Jan 17, 2015 at 6:31 pm
  • The Current Indian time is 10:37 AM, but PHP returns it as 5:07 AM with the timezone set as Asia/Kolkata or Asia/Calcutta. Tried with both! ---- Server IP: 72.52.91.14 Probable Submitter: 61.3.50.206 ...
    Sunny 3mysoreSunny 3mysore
    Jan 11, 2015 at 5:08 am
    Jan 11, 2015 at 3:24 pm
  • Here is a much simpler way to sort a multi dimensional array and supports multiple columns sort, along with any form of sort order you wish. In this example the 2D array is sorted by Name ascending, ...
    Ejennings_98Ejennings_98
    Jan 2, 2015 at 9:43 pm
    Jan 3, 2015 at 2:42 pm
  • Wouldn't it be simpler if "else" statement had the same effect as "default" case in switch statements? Like this: <?php $i = 6; switch ($i) { case 2: echo "i is 2"; case 3: echo "i is 3"; else: echo ...
    FichorkaFichorka
    Jan 2, 2015 at 2:03 pm
    Jan 3, 2015 at 2:40 pm
  • $root = '/etc'; $iter = new RecursiveIteratorIterator( new RecursiveDirectoryIterator($root, RecursiveDirectoryIterator::SKIP_DOTS), RecursiveIteratorIterator::SELF_FIRST, ...
    YashYash
    Jan 1, 2015 at 8:25 am
    Jan 2, 2015 at 11:35 am
  • This might be an incredibly stupid comment, but I thought I would share anyway. If you want to install PHP on Windows Server in one click without all the hassle above, simply go here to the official ...
    SedativchunkSedativchunk
    Jan 31, 2015 at 11:19 pm
    Jan 31, 2015 at 11:19 pm
  • one can also use the fpf library..downloaded at fpdf.org ---- Server IP: 72.52.91.14 Probable Submitter: 154.122.109.3 ---- Manual Page -- http://php.net/manual/en/intro.pdf.php Edit -- ...
    MwitiderrickMwitiderrick
    Jan 31, 2015 at 11:59 am
    Jan 31, 2015 at 11:59 am
  • This function will return count of sunday between inputed dates. <?php function CountSunday($from,$to) { $from=date('d-m-Y',strtotime($from)); $to=date('d-m-Y',strtotime($to)); $cnt=0 ...
    ManiarpratikManiarpratik
    Jan 30, 2015 at 12:09 pm
    Jan 30, 2015 at 12:09 pm
  • If you've already got a filepath of the form "ssh2.sftp://$sftp/path/to/file" you can just use unlink() on that path ---- Server IP: 72.52.91.14 Probable Submitter: 69.165.170.218 ---- Manual Page -- ...
    AndrewAndrew
    Jan 29, 2015 at 3:06 pm
    Jan 29, 2015 at 3:06 pm
  • The encryption has no authenticity check. It can be achieved with three methods, described in http://en.wikipedia.org/wiki/Authenticated_encryption#Approaches_to_Authenticated_Encryption ...
    Your Brother TYour Brother T
    Jan 29, 2015 at 11:52 am
    Jan 29, 2015 at 11:52 am
  • I'd like to also clarify a point on this. Even if you see 777 permissions for the directly, you may need to check your ACL, since your server's group might not have write permissions there. ---- ...
    ShkkmoShkkmo
    Jan 29, 2015 at 2:32 am
    Jan 29, 2015 at 2:32 am
Group Navigation
period‹ prev | Jan 2015 | next ›
Group Overview
groupphp-notes @
categoriesphp
discussions112
posts188
users109
websitephp.net

109 users for January 2015

: 95 posts Salathe: 53 posts Tularis: 11 posts Mazzanet: 7 posts Phpdoc: 4 posts Kalle: 3 posts Wojciech Fornal: 2 posts Aneesingh0957: 2 posts Gerbawn: 2 posts Rdlowrey: 2 posts Siguza: 2 posts Davidkevork: 2 posts Info: 2 posts Dm: 1 post Eclipsechasers2: 1 post Pilot114: 1 post Fichorka: 1 post Wira Sanjaya Saputro: 1 post Samundra Shr: 1 post Gsgleason: 1 post
show more
Archives