Jump to content
MakeWebGames

interesting things you found out about php


bluegman991

Recommended Posts

basically in this thread i want people to tell me interesting things you have

- found out about php

- wondered about php

- wondered if was possible in php

- accidentally found out about php

- wondered and figured out about php by own means

if possible tell how you found this out

ill start out ive always wondered how many times php looped through a while statement per second

i found out (on my server) it goes on average 1.8million times per second

i found it out through this function

$i=0;
$loadtime=time();
$istrue=0;
while($istrue==0)
{
   if(time()==$loadtime+1)
   {
       $istrue=1;
       while(time()==$loadtime+1)
       {
           $i++;
       }
   }
}
echo $i.' times';
Link to comment
Share on other sites

Some facts: (Even I knew some of them, but others were very intresting ;))

1. PHP originally stood for Personal Home Page.

2. PHP which is now officially known as ‘Hypertext Preprocessor’ was released in the year 1995.

3. Initially written as a set of Common Gateway Interface (CGI) in ‘C’ (1994).

4. PHP was originally designed to replace a set of Perl scripts to maintain his Personal Home Pages (also known as PHP).

5. PHP was originally created by Rasmus Lerdorf in 1995. He wrote the original Common Gateway Interface (CGI) binaries.

6. Zeev Suraski and Andi Gutmans, two developers at the Technion IIT, rewrote the parser in 1997 and formed the base of PHP 3.

7. PHP 3 was official launched in June 1998.

8. Suraski and Gutmans rewrote the PHP 3′s core, producing the Zend Engine in 1999. They also founded Zend Technologies in Ramat Gan, Israel.

9. On May 22, 2000, PHP 4, powered by the Zend Engine 1.0, was released.

10. The main implementation of PHP is now produced by The PHP Group and serves as the de facto standard for PHP as there is no formal specification.

11. On July 13, 2004, PHP 5 was released, powered by the new Zend Engine II. PHP 5 introduced full featured object-oriented programming support. It was there in PHP 3 and PHP 4 but only the basic features.

12. PHP is free software released under the PHP License, which is incompatible with the GNU General Public License (GPL) due to restrictions on the use of the term PHP.

13. PHP was originally designed to create dynamic and more interactive web pages. It is the most widely-used, open-source and general-purpose scripting language.

14. It is possible to use PHP in almost every operating system. PHP can be used in all major operating systems including Linux, Microsoft Windows, Mac OS X, and RISC OS.

15. PHP uses procedural programming or object oriented programming and also a mixture of them.

16. PHP is installed on over 20 million websites and 1 million web servers.

17. 75% of Web 2.0 sites are built in PHP.

18. There are about 5 million PHP developers worldwide.

19. The latest release of PHP till now is 5.3.0. It was released on Jun 30, 2009. PHP 6 is under development alongside PHP 5. Major changes include the removal of register_globals, magic quotes, and safe mode. The reason for the removals was that register_globals had given way to security holes, and magic quotes had an unpredictable nature, and was best avoided.

20. Some of the biggest online brands, such as Facebook, ProProfs, Digg, Friendster, Flickr, Technorati, and Yahoo! are powered by PHP.

Link to comment
Share on other sites

10. There are standards, PEAR being one of them.

11. PHP 5 still did not include full OOP implementation, it was lacking. Throughout PHP 5.x a little bit more was added. this is the latest.

13. No it wasn't, it was originally created to be "hacky" and perform Perl-like(administration) tasks.

19. 5.3.2

20. Just to clear the debut on this. Deeper server-side tasks are not PHP, as it is lot the fastest and most powerful of languages.

Link to comment
Share on other sites

  • 3 months later...

I actually learned php by downloading the source of popular scripts, or math based scripts like calculators and changing them, i would say this is the fastest way to learn a language. Be careful, using this advice for badly written scripts could harm your learning experience.

Also once you learn any language, picking up another is not tooo hard, these days most scripts carry about the same syntax for loops and classes.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...