HTML vs PHP
By knockout
@knockout (99)
United States
March 5, 2007 9:54am CST
Now this has been a big discussion among a lot of people but I find there to be no contrast or compare with them at all. PHP trucks HTML in all ways and forms HTML ever had. Some people say that HTML is easier and thats what makes it better, but I think PHP is just as easy if not easier and makes more since if you take the time to learn it.
Let me know what you think about this.
1 person likes this
13 responses
@lordwarwizard (35747)
• Singapore
5 Mar 07
You *can* embed html in php so I don't understand the need for a comparison. It is like comparing America with Earth. One is simply a subset of another.
However, if you are just rendering your site very "normally", you don't need php. Just stick with plain old html.
@shyam221 (519)
• India
30 Mar 07
well html is hyper text markup language developed for displaying information on the browser and PHP is personal heyper text language developed for the server side cripting language it is used for server programming and tough than the simple html
but both are used comined with together and for good dynamic site.it ios necessary when you develop a dynamic site you have to use one of available server site language such as asp or php to do server side programming. well asp is used for windows hosting and php is used for the linux hosting.
@damnsam (67)
• India
3 Apr 07
Well for me its damn simple. When I'm designing, i prefer keeping the pages performance oriented i.e., they should open easily even on slow connections. So thatways, its best use HTML and JavaScript on the client side and php with JSON on the server side. Otherwise also an ideal site is that which requires least client-server interaction.
@umitcicek (463)
• Turkey
29 Mar 07
Html is the preference of people preparing static pages like me.Static pages don't need to databases and until the owner of the page comes and changes it,stands alone there.Php makes your static page dynamic by databases and some type of C-like codes.For example,you want the people to show the date,the number of visitors,when the last came to and left your page,where the visitors come from,to do all of this,you need php codes.In static pages,there is no possibility of accepting members since you don't use databases in static pages but if your page is dynamic you can do that.Php resembles to ATP and it is a server side scripting language.You can write php codes in both Windows and Linux and compare them.I mean Php runs on different platforms.It uses servers.Most used servers are Apache,IIS.Beginners start using php by the proper installation of it into computer.I had experienced many problems in this part too.Php is open source,that is,you can use all php codes without spending money on it but you don't take and sell it.It is open to develop so that many programmers prefer using it.
@web2samus (255)
• Uruguay
6 Apr 07
okey, we all agree that since they different kinds of things there is no possible comparation right? now, I would like to remember you that PHP is NOT only meant to create html code, and so, it's not limited to web; but if you're talking just for the web part, you'll never use php alone, you must generate HTML code with it so in web is "HTML" or "PHP+HTML".
@swaroop_sv2003 (531)
• India
10 Mar 07
HTML is mainly used to setup the layout of a page and it is static. PHP works on the server side for generating dynamic content which is not possible using HTML. Both PHP and HTML are required to build a dynamic site. While we create the forms using HTML tags, PHP is used for processing that form. So we cant tell one is better than the other. Both are good for what there are developed.
@MarkyB21 (1545)
•
12 Mar 07
I taught myself html years ago when the internet was still quite a new thing and I was building a lot of sites, I'm not so involved now but if I got into it again I'd probably take the time to learn php to make some better looking sites.
@shabbydg (11)
• Sri Lanka
11 Mar 07
HTML and PHP are too very different tools or languages for comparison.
HTML simply is a language to present information. It will display information in the form that it is coded in html. but it cannot dynamically update information or display information according to different circumstances or user inputs.
That's where php comes in. It's a scripting language that adds functionality to html. Html can be embedded in php files to make the output more dynamic.
choosing which language to use is simply a matter of requirement. if you are trying to develop a simple information site where the data is static(does not change), then html is the only tool you need. but if you want to add some functionality(like link it with a database), then a language like php should be used.