Select Page
Notifications
Clear all

php or Html

(@Anonymous)
New Member

We purchased a business that was writted in php - all of our other sites are written in html. php seems to be more difficult to change. What is the advantage of php over html?

Quote
Topic starter Posted : 23/04/2007 10:13 am
(@Anonymous)
New Member

Re: php or Html

PHP files are just like HTML files, but they can include both HTML and PHP code. The PHP code is parsed (or executed) by the Web server when the page is accessed and the resulting output is written as HTML within the Web page. When a user accesses a PHP page, his Web browser only gets sent the HTML code, since the Web server has processed the PHP code in the background. Most PHP pages are processed so quickly that it does not noticeably slow down the loading of the Web page.

The .php extension is important, since it tells the Web server that the page may include PHP code. Therefore, it must be run through the server's PHP engine before being sent to a client's Web browser. This allows dynamic content to be generated each time the Web page is loaded, based on the variables included in the PHP code. For example, PHP pages may load objects such as the current date and time, data from form fields submitted by a user, or information from a database. Still, once the page reaches the user's Web browser, everything is formatted as HTML.

ReplyQuote
Posted : 26/04/2007 11:52 am
(@Anonymous)
New Member

Re: php or Html

Biz Advice;31591 wrote: PHP files are just like HTML files, but they can include both HTML and PHP code. The PHP code is parsed (or executed) by the Web server when the page is accessed and the resulting output is written as HTML within the Web page. When a user accesses a PHP page, his Web browser only gets sent the HTML code, since the Web server has processed the PHP code in the background. Most PHP pages are processed so quickly that it does not noticeably slow down the loading of the Web page.

The .php extension is important, since it tells the Web server that the page may include PHP code. Therefore, it must be run through the server's PHP engine before being sent to a client's Web browser. This allows dynamic content to be generated each time the Web page is loaded, based on the variables included in the PHP code. For example, PHP pages may load objects such as the current date and time, data from form fields submitted by a user, or information from a database. Still, once the page reaches the user's Web browser, everything is formatted as HTML.

Thanks I have seen the term php thrown around but I was not quite sure what it meant

ReplyQuote
Posted : 29/04/2007 10:50 am
(@Anonymous)
New Member

Re: php or Html

Excuse my ignorance but how does XHTML fit into the web is it a part of html?

ReplyQuote
Posted : 09/05/2007 5:23 pm
(@Anonymous)
New Member

Re: php or Html

Alright, first to answer your PHP to HTML question. PHP can be more work to maintain if coded wrong. The way I use it is I setup a single page which is the template of the site and I run all other pages through that single timeplate page. This way when I add a new page, I only have to add the page once. Also, PHP can do form mailers, guest books, members areas, shopping carts, etc. It can be the glue which allows a site to work with a database and display information dynamically.

Now, XHTML vs HTML. The main different is XHTML has a stricter standard which can be easier understood by browsers. For more information go here.
XHTML vs HTML

If you have any more questions feel free to let me know. This is part of what I do for my customers when developing and helping them maintain their site.

ReplyQuote
Posted : 10/05/2007 6:03 am
(@Anonymous)
New Member

Re: php or Html

Capital Domains;31542 wrote: We purchased a business that was writted in php - all of our other sites are written in html. php seems to be more difficult to change. What is the advantage of php over html?

HTML is a markup language, it is used to tell the browsers how to display and what to display on any page. Even a php page uses html to do the same.

Then how does php help ?

Basically, php is used for many things like
talking to a website database
authentication for web pages
differentiating between various users/visitors on web page
uploading documents and pictures
payment integration to website
and many more..

hope that helps,

Steve Smith
steve[at]pixVista.com

ReplyQuote
Posted : 19/07/2007 3:20 am
(@Anonymous)
New Member

Re: php or Html

PHP stands for PHP Hypertext Preprocessor and HTML stands for Hyper text mark up language.
PHP files are just like HTML files, but they can include both HTML and PHP code. The PHP code is executed by the Web server when the page is accessed and the resulting output is written as HTML form within the Web page. When a user accesses a PHP page, his Web browser only sent the HTML code, since the Web server has processed the PHP code in the background. Most PHP pages are processed so quickly that it does not noticeable and visible slow down the loading of the Web pages.
______________________________
Karndean

ReplyQuote
Posted : 05/03/2010 7:24 am
(@Anonymous)
New Member

Re: php or Html

The best part of PHP I like that first it is the most popular sever side scritping language and second thing it is widely used. The site made under this are stable, fast, safe, easy to use and it is a open source language. secure, easy to use and open source (free). PHP stands for personal home page that consist of a series of Perl Scripts. You can track number of visitors online and get your web traffic details. It is commonly integrated with HTML and this is best part. You does not need any advance conversion of this language to make it work with HTML. You know that HTML is the base language to create a web page. It is simple, easy to use and understand.

ReplyQuote
Posted : 10/03/2010 4:33 am
(@Anonymous)
New Member

Re: php or Html

Simply - U need PHP for database driven sites! Nearly all CMS are now PHP based

ReplyQuote
Posted : 22/07/2010 6:29 pm
(@Anonymous)
New Member

Re: php or Html

Both are nice but HTML is most easy and fast as compare to PHP. PHP is support mysql database, but in html do not support any database.
So, as per experience HTML is best.

ReplyQuote
Posted : 15/09/2010 5:35 pm
(@Anonymous)
New Member

Re: php or Html

The PHP code is executed by the Web server when the page is accessed and the resulting output is written as HTML form within the Web page. When a user accesses a PHP page, his Web browser only sent the HTML code these all are great to know about it.

ReplyQuote
Posted : 29/10/2010 8:53 am
(@Anonymous)
New Member

Re: php or Html

PHP stands for Hypertext Preprocessor.PHP easily embedded into HTML so that no separate coding required for PHP. It can reduce labour costs and increase efficiency due to its low learning curve and ease of use. PHP has a syntax that is easy to analyse . PHP is stable and easy to solve your problems.

ReplyQuote
Posted : 29/10/2010 12:41 pm
(@Anonymous)
New Member

Re: php or Html

PHP files are just like HTML files, but they can include both HTML and PHP code. The PHP code is parsed (or executed) by the Web server when the page is accessed and the resulting output is written as HTML within the Web page. When a user accesses a PHP page, his Web browser only gets sent the HTML code, since the Web server has processed the PHP code in the background. Most PHP pages are processed so quickly that it does not noticeably slow down the loading of the Web page.

ReplyQuote
Posted : 04/11/2010 3:23 am
(@Anonymous)
New Member

Re: php or Html

Sorry, PHP and HTML are very very different things.

PHP is a server side language that is used to interact with your database and when your server receives the url request from a browser, your php code will determine what to send back to the browser. What to send back to the browser may include HTML code.

HTML is a mark up language that is used by the client's browser to determine what to display.

For example, think of PHP code as your brain and HTML as words. When your brain receives some input (someone asking you a question), it would determine what words to respond with. In the same manner, when the php code receives some input (eg browser request), it would determine what to HTML to respond with. (I just thought of this analogy at the top of my head, I hope it is understandable!)

So PHP and HTML are two different things entirely and you cannot compare them like that. You almost always have to use HTML to display web pages. Whereas for the server side (the brain), you can use various languages such as PHP, RUBY etc.

ReplyQuote
Posted : 08/11/2010 4:41 pm
Share: