Post Tagged php

How can I start to learning PHP?

Thursday, 10 October 2008

One of my friends asked me this question. And I want to share the answer.
The php files run on a web server, create web pages and send the html files to the client. Let’s start.

First we need a web server. I recommend EasyPHP, you can download this program from SourceForge. After installed the program you can see EasyPHP icon at “Notification Area”. Go to your “easyphp\www” directory, generally in “…\program files\EasyPHP\www”.

Create a directory such as “mywebdir” and open the directory.Open your favorite text editor and write the first PHP code:
<?php echo"Learning PHP"; ?>

Save “Index.php” in the “…\program files\EasyPHP\www\mywebdir\” directory. Open the your best Explorer and type this: http://localhost/mywebdir/
You will see the “Learning PHP” words. You will find yourselves.

The links:
http://www.easyphp.org/index.php
http://en.wikipedia.org/wiki/List_of_PHP_editors
http://www.w3schools.com/PHP/default.asp