Saturday, February 9, 2008

Simple Code....

After install XAMPP or WAMP you have to run this server. Double click on XAMPP control panel after open click only Apache start button and close it. Then start the Internet Explorer and write the address: http://localhost/ and click enter, you will see its working or not.
Example:
In PHP what ever you write the code it must be put on C:\Program Files\xampp\htdocs\create a folder with name (like folder name: test)\your PHP file (like file name: index.php).



Then start the Internet Explorer and write the address : http://localhost/test click enter, you will see your code output.


Code output will be: Hello World

Each code line in PHP must end with a semicolon. The semicolon is a separator and is used to distinguish one set of instructions from another. There are two basic statements to output text with PHP: echo and print. In the example above we have used the echo statement to output the text "Hello World".

No comments: