Subscribe Twitter

Tuesday, April 26, 2011

Learning php

Php is pre hypertext processor, which is used to write server side scripting. It is easy to code in php and php has a very good libraries as any other normal programming language.

1. Hello World in php

Source code:

?php 

/*......................................................... author:www.codershandbook.in............................... .........................................................*/ echo "Hello world in php"; ?> Output: Hello world in php Code Explanation:

The source should contain less than symbol before php is the body of the php source code closed by the later ?greater than symbol. The echo is the function that outputs the text within the quotes. The file should be saved with .php extension and the output can be viewed in the browser. But you need to install php onto your system. The simple installation is wampserver which can be downloaded from Wamp Server.

Thanks for reading.

Website

How to create a website
Creating a website is simple as reading email or surfing net, even we don't need knowledge of html, only basic is enough.

1. First buying a domain name for your site such as www.your-domain-name.com from dns providers like Bigrock, E-web guru etc

2. Then we need to setup the server for the hosting services, but setting up server for hosting cannot be done, since it needs more capital, therefore we can buy hosting services from various hosting providers.



3. Next step is to code your site, if you don't have any knowledge of web development, you can opt for the website builders given to you by your hosting provider, otherwise you can code yourself using php, .net or jsp etc.

4. You can also connect your domain with free web hosting services such as blogger.com, wordpress.com etc for blogs.

5. If you need any informations, just feel free to contact us using the authors tab in navigation.