What are the advantages of PHP over HTML?
Answers were Sorted based on User's Feedback
Answer / nagarjuna
HTML is simple coding.the main differnece beween php and
html is that html is static and php is dynamic. php is
server scripting language where we can retreive values and
we can use in the front end. but php cant be useful without
html
| Is This Answer Correct ? | 49 Yes | 5 No |
Answer / neehal
HTML is a client-side programming language, PHP is
server-side and will get executed when called by the user.
whereas HTML all alone may or may not get executed when
loaded into the browser. PHP adds up to dynamicity of HTML a
long way. Helps in sharing files, etc. between webpages,
accessing databases. But still PHP requires to use HTML.
| Is This Answer Correct ? | 46 Yes | 4 No |
Answer / vivek srivastava
PHP is a well known server side scripting language which we
can embed with HTML, a client side programming language. It
provides dynamicity to our website. Through PHP we can
retrieve information, save information, update information
in database directly. We can also enhance the performance of
our website by using PHP's powerful functions.
Its most powerful feature is include function, through which
we can create a PHP file and include it in different files.
And instead of that there are so many functions reside in
PHP that makes the language powerful and user friendly.
| Is This Answer Correct ? | 18 Yes | 1 No |
Answer / sudheer
Php is Scripting language but
Html is markup language
means in Html we can develop only Static webpages but
in php we can create Dynamic pages.
In Html any mistakes there in report on errors but in Php
its report errrors.If u want run html we require only
Browser.But Php Browser as well as Server(Apache).
| Is This Answer Correct ? | 13 Yes | 3 No |
Answer / deepinder
I think we can't compare these two for their advantages as
both are used together for web development. Another simple
reason for this answer is that we embed php script tags
i.e. <? and ?> within an html file. So, they both have
their own features.
| Is This Answer Correct ? | 13 Yes | 6 No |
Answer / sachin
PHP is a scripting language that provides database
connectivity methods, data processing and logic encoding.
HTML is NOT a scripting language and is a markup language
used for browser interpretation.
The PHP after executing on the server throws out HTML that
is sent to the user's browser.
One can make static web pages using HTML ; PHP is meant to
make data driven intelligent applications and uses HTML to
show the result of processing to the user.
| Is This Answer Correct ? | 9 Yes | 2 No |
Answer / mayur agrawal
PHP is helpful in the security of our web.this is the very
important advantage of PHP
| Is This Answer Correct ? | 10 Yes | 3 No |
Answer / muzahid
PHP helps us to develop webpage dynamically.HTML is statical
language that helps PHP.Here word "Dynamic" is used for PHP
because PHP can handle data and use DATABASE such as MYSQL.
| Is This Answer Correct ? | 7 Yes | 1 No |
Answer / charankumar
Many Social Networking sites make use of PHP. HTML cannot
meet this requirement to a large extent.
| Is This Answer Correct ? | 7 Yes | 4 No |
Answer / erickson
PHP is a server side programming language,but HTML is a
client side programming langage,with PHP we can create
dynamic pages,PHP is having higher PORTABILTY than HTML,PHP
is based on the web development platform of
LAMP(LINUX,APACHE,MySql,PHP),it is easily assessible than
HTML,so that PHP is more advantages than HTML.
| Is This Answer Correct ? | 6 Yes | 3 No |
How does php server work?
What is strlen php?
4 down vote favorite share [g+] share [fb] share [tw] I am developing my site using server side sessions using redis as backend for saving the session. Now the issue which is bothering me is of user leaving the website without logging out. I mean user simply closes the browser which causes the cookie to be deleted. Now session of that user still exists on the server and will not be used again as new login requires creating a new session due to security reasons. To avoid the case where hacker steals the old cookie and use it after user login again with same old session id. In essence user leaves the website without explicitly logging out and his session will be deleted after certain time limit of inaccessibility. I am thinking time limit of 30-60 minutes. Also with every new request from user his cookie will also be updated to keep track of when the user last time accessed the site. But nowadays, people let site remain open for long time without accessing it. For example users open facebook and gmail in new tabs and forget about them for 2-3 hours and still they are not asked to login again. Is letting a 2-3 hours old cooke access the session secure? My concern is someone steals user cookie and use it 2-3 hours later. Thinking on this topic has also forced me to question how facebook manages security if user can use a session where they are not accessing it for long periods of time and still they remain logged in. Or is it not secure for me to keep logged in when am not accessing the site session for longer period of time? It can be the case also there is some pinging mechanism using which sites keep track of user having their site open in a browser and when browser closes they are notified and can work accordingly. My website is a social network and needs all those security and usage features which a social network may need. I am new to web security and web development in general and may be the case where my above questions may seem a little basic. If you feel that is the case kindly point to some good reference where I can read and find answers to my question.
How to use validations in php?(codelgniter)
can we use PGP with PHP?
what is the post and get method??
Is empty java?
What php framework does wordpress use?
How can you make a connection with mysql server using php?
HOW we can use css
How can we do user authentication without using session/cookies ? For ex:- From page1 accepts user name and password and need to check in all other pages whether the user has logged in or not
How to get tabels from database in php andd display it in the table form using codelgniter? plz help me