Search Discussions
-
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 ...
Info
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 ...
Shadi1024
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 -- ...
Info
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 ...
Mail
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 -- ...
Info
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 ...
Interessa
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 -- ...
Rokibhasansagar2014
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 ...
Nakkers1
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 ...
Nakkers
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 ...
Nakforme
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)) ...
Thomasjiao
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 ...
Catchyouhand
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 ( ...
Cmartinezme
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 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 ---- ...
Gerbawn
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 -- ...
Support
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 ...
Yohgaki
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 ...
Gsgleason
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 ...
Bobray
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 ...
Andrescevp
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 -- ...
Subtlenv
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 -- ...
Davidkevork
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 -- ...
Davidkevork
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 ...
Keremc
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 ...
Mike
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 ...
Info
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 ...
Meeme9
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_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 -- ...
Fake
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 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') ...
Contacto
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 ...
Wissamelkik
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 , ...
Monsthoms
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 ...
Rdlowrey
Jan 20, 2015 at 6:37 pm
Jan 21, 2015 at 5:47 am -
For the famous problem of '&'... 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 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 ...
Phpir469
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 ...
Aneesingh0957
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 ...
Aneesingh0957
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 -- ...
Okan
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 ...
Kazypac2009
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 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_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 ...
Fichorka
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, ...
Yash
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 ...
Sedativchunk
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 -- ...
Mwitiderrick
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 ...
Maniarpratik
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 -- ...
Andrew
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 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. ---- ...
Shkkmo
Jan 29, 2015 at 2:32 am
Jan 29, 2015 at 2:32 am
109 users for January 2015
Archives
- May 2016 (219)
- April 2016 (232)
- March 2016 (107)
- February 2016 (70)
- December 2015 (63)
- November 2015 (188)
- October 2015 (63)
- April 2015 (121)
- March 2015 (179)
- February 2015 (255)
- January 2015 (283)
- December 2014 (244)
- November 2014 (251)
- October 2014 (212)
- September 2014 (200)
- August 2014 (267)
- July 2014 (296)
- June 2014 (141)
- May 2014 (249)
- April 2014 (306)
- March 2014 (336)
- February 2014 (370)
- January 2014 (318)
- December 2013 (377)
- November 2013 (309)
- October 2013 (839)
- September 2013 (296)
- August 2013 (229)
- July 2013 (430)
- June 2013 (394)
- May 2013 (336)
- April 2013 (396)
- March 2013 (281)
- February 2013 (270)
- January 2013 (473)
- December 2012 (464)
- November 2012 (399)
- October 2012 (535)
- September 2012 (658)
- August 2012 (835)
- July 2012 (551)
- June 2012 (631)
- May 2012 (940)
- April 2012 (481)
- March 2012 (496)
- February 2012 (621)
- January 2012 (544)
- December 2011 (435)
- November 2011 (567)
- October 2011 (690)
- September 2011 (703)
- August 2011 (842)
- July 2011 (905)
- June 2011 (977)
- May 2011 (832)
- April 2011 (920)
- March 2011 (974)
- February 2011 (877)
- January 2011 (1,165)
- December 2010 (880)
- November 2010 (872)
- October 2010 (771)
- September 2010 (638)
- August 2010 (935)
- July 2010 (674)
- June 2010 (856)
- May 2010 (924)
- April 2010 (1,232)
- March 2010 (1,148)
- February 2010 (917)
- January 2010 (1,027)
- December 2009 (1,065)
- November 2009 (1,127)
- October 2009 (1,126)
- September 2009 (1,090)
- August 2009 (1,124)
- July 2009 (1,239)
- June 2009 (1,531)
- May 2009 (2,141)
- April 2009 (1,392)
- March 2009 (1,398)
- February 2009 (1,224)
- January 2009 (1,316)
- December 2008 (1,280)
- November 2008 (1,451)
- October 2008 (1,082)
- September 2008 (884)
- August 2008 (1,042)
- July 2008 (1,975)
- June 2008 (985)
- May 2008 (1,083)
- April 2008 (1,151)
- March 2008 (1,178)
- February 2008 (936)
- January 2008 (1,052)
- December 2007 (1,926)
- November 2007 (811)
- October 2007 (945)
- September 2007 (1,002)
- August 2007 (860)
- July 2007 (972)
- June 2007 (1,026)
- May 2007 (1,091)
- April 2007 (1,019)
- March 2007 (1,013)
- February 2007 (1,506)
- January 2007 (1,311)
- December 2006 (948)
- November 2006 (927)
- October 2006 (1,390)
- September 2006 (1,312)
- August 2006 (1,191)
- July 2006 (1,032)
- June 2006 (1,666)
- May 2006 (2,460)
- April 2006 (3,118)
- March 2006 (2,517)
- February 2006 (1,792)
- January 2006 (1,735)
- December 2005 (1,671)
- November 2005 (1,493)
- October 2005 (1,794)
- September 2005 (1,552)
- August 2005 (1,706)
- July 2005 (1,621)
- June 2005 (1,519)
- May 2005 (908)
- April 2005 (1,501)
- March 2005 (1,599)
- February 2005 (1,404)
- January 2005 (1,767)
- December 2004 (1,311)
- November 2004 (1,779)
- October 2004 (1,781)
- September 2004 (1,848)
- August 2004 (1,950)
- July 2004 (1,635)
- June 2004 (1,829)
- May 2004 (1,321)
- April 2004 (1,611)
- March 2004 (1,432)
- February 2004 (1,518)
- January 2004 (1,759)
- December 2003 (1,554)
- November 2003 (1,573)
- October 2003 (2,092)
- September 2003 (2,129)
- August 2003 (2,262)
- July 2003 (1,884)
- June 2003 (1,736)
- May 2003 (2,195)
- April 2003 (1,278)
- March 2003 (1,350)
- February 2003 (1,447)
- January 2003 (1,705)
- December 2002 (1,337)
- November 2002 (1,347)
- October 2002 (1,399)
- September 2002 (1,375)
- August 2002 (1,985)
- July 2002 (1,639)
- June 2002 (1,132)
- May 2002 (1,283)
- April 2002 (1,594)
- March 2002 (1,235)
- February 2002 (1,093)
- January 2002 (2,082)
- December 2001 (2,525)
- November 2001 (1,564)
- October 2001 (1,502)
- September 2001 (966)
- August 2001 (1,333)
- July 2001 (1,306)
- June 2001 (574)
- May 2001 (697)
- April 2001 (684)
- March 2001 (1,204)
- February 2001 (1,138)
- January 2001 (1,301)
- December 2000 (928)
- November 2000 (1,079)
- October 2000 (1,432)
- September 2000 (1,964)
- August 2000 (3,824)