Php Vs Html

Status
Not open for further replies.

jtaah

Member
Messages
150
Reaction score
1
Points
18
What if any are the advantages or disadvantages from one or the other and which is more flexible

rgds
jtaah:happysad:
 

kajasweb

New Member
Messages
1,723
Reaction score
0
Points
0
HTML is for Static Site, PHP is preferred for Dynamic Site.
 

jtaah

Member
Messages
150
Reaction score
1
Points
18
kajasweb

could you please explain the difference between a static site and a dynamic site

rgds
Jtaah
 

kajasweb

New Member
Messages
1,723
Reaction score
0
Points
0
Static site is the one in which you have same content for all users and no content is changed depending on some parameters.

Dynamic site is the one in which you can have different content for different users and you can change the content depending on some parameters.
 

port5800

New Member
Messages
12
Reaction score
0
Points
0
PHP is a dynamic language meaning it can send, get and display data. Its used for server request mostly for example when you click on a button to search on google it send a request to a php script...."yo send me info on HTML!" the php script will then look up all the info it can find in the sites database(mySql) and send it back to you. thats just one way php is used. its used mostly the get info, talk to other scripts and disply info on your screen.
(you can even build game in PHP but thats just stupid)

HTML is a building language it inserts text on a page gives text colors, puts back ground images on a site. It builds

Now if your asking which one should you learn. you need to know HTML be for you can do anything. HTML the only foundation there is to make a site. you cant really have a php code on a page by it self(well you can but thats not for you right now) every page has to start with a HTML tag and close with a HTML closing tag. So there is no Vs. They both are needed

P.S. (Google does not use php they use python, its like PHP but better)

got it? -=)
 
Last edited:

kotofei

New Member
Messages
11
Reaction score
0
Points
0
PHP can't display anything. PHP makes HTML, browser renders html and shows it.
 
Status
Not open for further replies.
Top