Go Back   CodingForums.com > :: Client side development > General web building

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-23-2013, 10:32 AM   PM User | #1
Rowan88
New to the CF scene

 
Join Date: Jan 2013
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Rowan88 is an unknown quantity at this point
HTML or PHP

Hi,

I started building my website and have done 5 pages so far but I have done them in .html format.

Should I change over to PHP format as it seems to be more popular with scripts etc?

Thanks,

Rowan88
Rowan88 is offline   Reply With Quote
Old 01-23-2013, 02:35 PM   PM User | #2
jerry62704
Senior Coder

 
jerry62704's Avatar
 
Join Date: Oct 2007
Location: Springfield, IL
Posts: 1,049
Thanks: 9
Thanked 81 Times in 81 Posts
jerry62704 is on a distinguished road
It totally depends on what you want to do with your web site. If it requires information from a server then go with PHP. If it is dynamic you can also go with PHP. And there are other languages you can use as well.

For example, on my web site I use PHP to determine what will appear based on the day of the week. So I can load up everything on Saturday and every day different things will appear as if I had changed it that day.
__________________
.
.
...and gladly would he learn and gladly teach

Visit www.LiberalsWin.com for humor and the unique Bush/Obama Approval Polls
jerry62704 is offline   Reply With Quote
Old 01-23-2013, 02:43 PM   PM User | #3
jerry62704
Senior Coder

 
jerry62704's Avatar
 
Join Date: Oct 2007
Location: Springfield, IL
Posts: 1,049
Thanks: 9
Thanked 81 Times in 81 Posts
jerry62704 is on a distinguished road
I should add that it is not a case of PHP or HTML. They work together with the PHP building the HTML dynamically for you.
__________________
.
.
...and gladly would he learn and gladly teach

Visit www.LiberalsWin.com for humor and the unique Bush/Obama Approval Polls
jerry62704 is offline   Reply With Quote
Old 01-24-2013, 06:16 PM   PM User | #4
aditd
New Coder

 
Join Date: Sep 2011
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
aditd is an unknown quantity at this point
Quote:
Originally Posted by Rowan88 View Post
Hi,

I started building my website and have done 5 pages so far but I have done them in .html format.

Should I change over to PHP format as it seems to be more popular with scripts etc?
I use php and see html as an old method to do pages.
__________________
Coupon Site Script - Turnkey Affiliate Moneymaking Business

Code Coupon Discount - Coupon Site Script in Action
aditd is offline   Reply With Quote
Old 01-28-2013, 02:24 PM   PM User | #5
ckirkster
New to the CF scene

 
Join Date: Jan 2013
Location: UK
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
ckirkster is an unknown quantity at this point
jerry62704 is right:

If you have information on your website that changes periodically then it's generally more efficient to use a server side scripting language like PHP.

If your website doesn't need to change (other than when you want to update the content manually) then stick to HTML.
ckirkster is offline   Reply With Quote
Old 01-28-2013, 04:46 PM   PM User | #6
jerry62704
Senior Coder

 
jerry62704's Avatar
 
Join Date: Oct 2007
Location: Springfield, IL
Posts: 1,049
Thanks: 9
Thanked 81 Times in 81 Posts
jerry62704 is on a distinguished road
Quote:
Originally Posted by aditd View Post
I use php and see html as an old method to do pages.
You don't display PHP, you display HTML. You can use PHP to build the HTML, and many of us do that. One is a tool to build the other.
__________________
.
.
...and gladly would he learn and gladly teach

Visit www.LiberalsWin.com for humor and the unique Bush/Obama Approval Polls
jerry62704 is offline   Reply With Quote
Old 02-20-2013, 09:12 AM   PM User | #7
Biztech
New to the CF scene

 
Join Date: Feb 2013
Location: India
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Biztech is an unknown quantity at this point
If you are going to create website it is highly recommended that you choose PHP as your default file extension preference in place of HTML. Write php in place of html where prompted in the weblog config preferences section.
Biztech is offline   Reply With Quote
Old 02-21-2013, 12:04 AM   PM User | #8
StevenHu
Regular Coder

 
Join Date: Jun 2011
Location: CA
Posts: 105
Thanks: 0
Thanked 10 Times in 10 Posts
StevenHu is an unknown quantity at this point
Use PHP if you are going to use a database like MySQL, want to dynamically add dates and times, headers, footers, manipulate strings of text, add password encryption (access control), process forms, populate pages with repeatable elements like tables and images (like image galleries), protect form data from hackers, image manipulation, implement error handling, and so on.

It's a REALLY good idea to start using PHP right away, especially if you think your site will grow a great deal.
__________________
Steve Husting
http://iphonedevlog.wordpress.com
StevenHu is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 12:18 AM.


Advertisement
Log in to turn off these ads.