For running a website on the Internet, you need to buy a domain name and a web hosting account. Domain name is the address of your website on the Internet. And web hosting will be the space on a web server to make your website accessible. To get a domain name, you need to pay to domain registrar and for web hosting, pay to any web host. Hostgator, Bluehost, Godaddy and Bigrock are few popular web hosts. GODaddy and BigRock also deals with Domain name. So, you can buy domain name here. But what if you want to run a website on the Internet just for learning purpose? For this, you do not want to buy a domain name or hosting. So you can buy domain and hosting from free domain and hosting vendors on the internet. There are many sub domain website which provide free sub domain accounts. And many webhosts which offers free hosting. Free domain is fine, but free hosts adds their banner ads at the bottom or top of the website which looks weird.
Sometimes we use these free host for hosting our professional website in case we do not want to pay for hosting. So using free hosts with their bottom of ads can ruin the impression of your website on visitors. In this case, you can use blogger or wordpress.com for free hosting of websites. These will only allow you to create your website with their website builders. If you want your own scripts to be run, you will still need a webhost which supports your scripts
If you are looking for a free web host which does not add ads on the website, there are some web hosts which offer free PHP MySQL hosting. They also do not add any type of links and banner or advertisements. Your visitors will never know that you are using free web hosting service. The web space depends on the web hosting server you are using.
Some web hosts only provide web space and allows php scripting without database. But there are many which also provide MySQL database support but with some restriction.
These are the name of some free web hosting servers which provides free php hosting.
There is a long list of free web hosting servers. You can find all type of free hosting web servers detail from the website absolutely-free-hosting.com . This website will help you to find more details about these web servers.