PDA

View Full Version : html and php?



snowgirl
July 19th, 2007, 07:03
whats the different about html and php?

Decker
July 19th, 2007, 08:55
whats the different about html and php?

HTML is simple text that a web browser understands, php is a programming language that will interpret through the php application to send HTML to a browser to understand.

Think I got that right! Bit simplistic but generally :angel:

Kaliber
July 19th, 2007, 12:57
They both output the same thing, HTML. HTML is a browser side language (the web browser interprets whats written), but PHP is server side, that is the server does all the processing and output. They are both used for different things. PHP is more complex and handles more complex procedures, like say a bulletin board, or a contact form. HTML does not really have the ability to greatly affect other webpages, where PHP can.

PHP is similar to CGI and ASP in its function, but just another variant, like a brand. PHP is now used more widely than CGI and ASP.

Decker
July 19th, 2007, 13:22
They both output the same thing, HTML. HTML is a browser side language (the web browser interprets whats written), but PHP is server side, that is the server does all the processing and output. They are both used for different things. PHP is more complex and handles more complex procedures, like say a bulletin board, or a contact form. HTML does not really have the ability to greatly affect other webpages, where PHP can.

PHP is similar to CGI and ASP in its function, but just another variant, like a brand. PHP is now used more widely than CGI and ASP.

A bit wrong there, php is not similar to CGI or ASP (apart from being server side programming languages), and php is actually below PERL/CGI and other server application processors for usage. Corporations made sure of that by using the big/bloated but nice and shiny application interfaces.

Kaliber
July 19th, 2007, 14:09
not really, when compared to html they are similar, which was the question being asked. But obviously different in their own way. I am aware of CGI's application type functionality.

Decker
July 19th, 2007, 14:22
not really, when compared to html they are similar, which was the question being asked. But obviously different in their own way. I am aware of CGI's application type functionality.

Discussion could go off on a side track, but your post is contradictory.

If you get deeper into it HTML can instruct commands to execute too, so really it's just a difference in general terms of client side / server side.

Kaliber
July 19th, 2007, 14:43
so really it's just a difference in general terms of client side / server side.

didn't I already say this?

Please lock thread, this is annoying

Decker
July 19th, 2007, 15:02
Your not the OP and contradicting a contradiction isn't quite right, live with it.

besthostworld
July 19th, 2007, 15:36
The Php File is A dynamic application allow you to create your own company program for easy subscription or easy comminucate from the client (Any one use the net ) and the Server ( where the application are installed )
-
and the Html is only a Static page for work as just text are showed on the browser (IExplorer , Opera , Fire Fox .. ets ) and this is only stable and text and possible for embidded and Split in the Php code :

the html code simple is :
<title> Freewebspaceforum </title>
the php code simple is :
<?php echo "<tittle> Freewebspaceforum</title>" ; ?>

Decker
July 19th, 2007, 15:52
The Php File is A dynamic application allow you to create your own company program for easy subscription or easy comminucate from the client (Any one use the net ) and the Server ( where the application are installed )
-
and the Html is only a Static page for work as just text are showed on the browser (IExplorer , Opera , Fire Fox .. ets ) and this is only stable and text and possible for embidded and Split in the Php code :

the html code simple is :
<title> Freewebspaceforum </title>
the php code simple is :
<?php echo "<tittle> Freewebspaceforum</title>" ; ?>

Thank you for that - where is it from so we can avoid it?

besthostworld
July 19th, 2007, 16:44
Dear , Avoid what ?

Richard
July 19th, 2007, 17:13
Dear , Avoid what ?

I think he was taking the p*ss out of your very bad english language skills.

Kaliber
July 19th, 2007, 21:51
I think Decker is a sub par programmer, who likes to poke holes in what other people say but really has no experience him/herself

krakjoe
July 20th, 2007, 02:26
PHP and HTML are NOT similar, or the same, or designed for the same thing, and html cannot be described as a programming language.

HTML is the markup that browsers the world over understand as web content and render accordingly, each ( most of all ) <tag> has attributes which control the way that the page is displayed or behaves. HTML is known as a "clientside" language, this is because all html is processed client side ( by browsers ). The content you save is seen by the user as is.

PHP is an interpreted programming language, first designed to manage form submissions and process the data therein - it has grown to a massively used language, it's hard to say which is more popular out of php and perl because perl has been around for so long - cpanel is perl it's still massively used - the php code that you write and save to servers will control the way a site is displayed but with a much firmer grip than html. PHP is a serverside language, meaning that the code you write is processed by the server your site is hosted on and the resulting html ( if any, hopefully there should be ) is sent to that users browser, php is not required to be installed on your clients computer for them to read your content.

Lastly, you might have the idea that CGI is a language just because some of the posts here are pretty unclear, well it's definately not .....

CGI = Common Gateway Interface

PHP can run as a CGI, and commonly does, perl runs as a cgi also - normally when you hear people talk of CGI they do not mean php they mean perl.

Chris L.
July 20th, 2007, 03:29
Boo Freeking hoo...
Lock the thread... the OP is banned and this is turning into a flaming match.
Chris

Robert
July 20th, 2007, 10:04
Please lock thread, this is annoying

.. lol ..

krakjoe
July 20th, 2007, 11:16
Boo Freeking hoo...
Lock the thread... the OP is banned and this is turning into a flaming match.
Chris

Not at all, I just thought I would post a clearer description of them ..... if you didnt have anything to say that is constructive then why post ???

themoose
July 20th, 2007, 13:05
Basically, in a website, HTML is what you see, and PHP is usually what you don't see, in the background doing all the work.