How to install and learn PHP?

3

Sponsored Links


If you have had any encounter with a WordPress theme, WordPress plugins etc the first thing you would require is, knowledge of PHP. I think PHP is one of those languages that everyone aspiring to have (or already having) a web presence should learn.  Here is how you can install(its a bit tricky) and start learning PHP.

Installation:

All steps given below are for Windows XP SP2

  1. PHP is a server side scripting language. To work on this language, you need to have a web server running successfully on your local machine. Though PHP goes well with many web servers, for our learning sake we will install Apache on Windows XP.
  2. Go To http://httpd.apache.org/download.cgi
  3. Download the latest version of Win32 Binary without crypto (no mod_ssl) (MSI Installer) [As of writing this post Apache HTTP Server 2.2.9 is the best available version]
  4. Now follow each and every instruction carefully at this link http://www.buzzle.com/articles/109196.html
  5. By now, Apache must be up and running successfully.
  6. Now we will install PHP. Go To http://www.php.net/downloads.php
  7. Under Windows Binaries, download the PHP 5.2.6 zip package[Current as of writing this post]
  8. Again, follow the instructions religiously given at this link http://www.buzzle.com/articles/109200.html
  9. Now, if after following all the steps given at link of pt 8 above, you encounter an error such as "httpd: Syntax error on line 486 of C:/server/Apache2.2/conf/httpd.conf: Cannot load C:/server/PHP/php5apache2.dll into server: The specified module could not be found", go to pt 10 in that file change the first line from c:/server/PHP/php5apache2.dll" to c:/server/PHP/php5apache2_2.dll" Hopefully that should solve the problem.
  10. Test if PHP is working as given in pt 16 of link above.   

Learning PHP

Now that’s simple. Go through this link. It is a very easy step by step guide for anyone wanting to learn PHP. Though the articles on this link were written way back in 2004, I find that nothing has changed till now.

Do comment about your experience of learning PHP.

Digg, Stumble, Twit or share this post by clicking on any of the buttons below:
  • Digg
  • del.icio.us
  • StumbleUpon
  • Sphinn
  • Yahoo! Buzz
  • Technorati
  • TwitThis
  • Facebook
  • MySpace
  • Google Bookmarks

Want to get an update as soon as we publish new article? I recommend you to subscribe via RSS Feed. You can also subscribe by email and have new articles sent directly to your inbox. It's absolutely free!

Related posts:

  1. Two sites to learn English language: Yappr & VerbaLearn
  2. Learn How to Make List Based Menu with CSS/HTML

Comments

3 Responses to “How to install and learn PHP?”
  1. Mur says:

    Why we have to download Apache ? What is the use of LAMP ? How to create LAMP ? PHP is easy ? Before learning PHP what we have to know ?

    ROW, please answer the above questions.

  2. ROW says:

    >>Why we have to download Apache ?
    As I mentioned earlier PHP is a server side language, to work on this language, you need to have a web server running successfully on your local machine. The web server of my choice was Apache as this is one of the most commonly used server… You are free to install any other server though.

    >>What is the use of LAMP ? How to create LAMP ?
    LAMP is simply an acronym for Linux, Apache, MySQL, PHP

    >>PHP is easy ? Before learning PHP what we have to know ?
    Subjective. Please go through the link I have mentioned in post, you will get the idea.

Trackbacks

Check out what others are saying about this post...


Speak Your Mind

Tell us what you're thinking...
and oh, if you want a pic to show with your comment, go get a gravatar!