CodingForums.com

CodingForums.com (http://www.codingforums.com/index.php)
-   General web building (http://www.codingforums.com/forumdisplay.php?f=10)
-   -   HTML or PHP (http://www.codingforums.com/showthread.php?t=286287)

Rowan88 01-23-2013 10:32 AM

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

jerry62704 01-23-2013 02:35 PM

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.

jerry62704 01-23-2013 02:43 PM

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.

aditd 01-24-2013 06:16 PM

Quote:

Originally Posted by Rowan88 (Post 1308117)
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.

ckirkster 01-28-2013 02:24 PM

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.

jerry62704 01-28-2013 04:46 PM

Quote:

Originally Posted by aditd (Post 1308501)
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.

Biztech 02-20-2013 09:12 AM

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.

StevenHu 02-21-2013 12:04 AM

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.


All times are GMT +1. The time now is 11:25 AM.

Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.