Home Newsletter Resources

Go Back   Small Business Forum > Online Business Discussion > Websites Management
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-23-2007, 06:13 AM
Capital Domains Capital Domains is offline
Vice President
 
Join Date: Feb 2007
Posts: 84
php or Html

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?
__________________
---------------------------------------------------
The Names That Count When Money Matters
www.capitaldomainmanager.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-26-2007, 07:52 AM
Biz Advice Biz Advice is offline
Vice President
 
Join Date: Sep 2006
Posts: 71
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-29-2007, 06:50 AM
txa txa is offline
Vice President
 
Join Date: Nov 2006
Posts: 56
Re: php or Html

Quote:
Originally Posted by Biz Advice View Post
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 05-09-2007, 01:23 PM
ask ask is offline
Assistant Vice President
 
Join Date: Jan 2007
Posts: 39
Re: php or Html

Excuse my ignorance but how does XHTML fit into the web is it a part of html?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 05-10-2007, 02:03 AM
syphic syphic is offline
Assistant Vice President
 
Join Date: May 2004
Location: North Carolina, USA
Posts: 44
Send a message via AIM to syphic Send a message via Yahoo to syphic
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 07-18-2007, 11:20 PM
steve21 steve21 is offline
Entry Level
 
Join Date: Jul 2007
Posts: 5
Re: php or Html

Quote:
Originally Posted by Capital Domains View Post
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
HTML Tutorial Eminem Websites Management 3 09-27-2006 07:24 AM
HTML Experts, Question for You Mark Shell Internet Marketing 2 05-31-2005 01:38 AM
Re: Advice please htm or html file names John Bokma Internet Marketing 0 05-31-2005 01:18 AM
Re: Advice please htm or html file names John Bokma Internet Marketing 0 05-31-2005 01:18 AM
Re: Advice please htm or html file names Ian Harris Internet Marketing 0 05-31-2005 01:17 AM


All times are GMT -4. The time now is 05:59 AM.


Powered by vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0 RC5
smallbusinessforum.com

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30