Web Hosting Vodahost    

Home Take The Royal Tour! Order Now Features Prices
Go Back   Web Hosting > VodaHost Web Hosting Support > mySQL & PHP

Notices

mySQL & PHP Discussions, information and help with mySQL and PHP.

Reply
 
LinkBack Thread Tools
  #1  
Old 11-05-2007, 04:00 AM
Produced's Avatar
Sergeant Major
 
Join Date: Sep 2007
Location: South Gate, CALIFORNIA
Posts: 86
Exclamation What is The Differnece

what is the differnce between .php and .html? and wich one would be better to use?
__________________



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2  
Old 11-05-2007, 05:27 AM
Vasili's Avatar
Generalissimo
 
Join Date: Mar 2006
Posts: 9,291
Default Re: What is The Differnece

Depends on what you are trying to do.....since you only registered your domain a few days ago, you have been asking a lot of questions with very unclear indications of what you are thinking of, what you are trying to do, or how we can offer any advice in a specific manner.

You might get a clearer idea of what you website Plan might include by reviewing the many features offered by VodaHost and that are included in every account. If by seeing some mention of utility or function in this list you are inspired to know more detail, you might try performing a Key Word search of these forums, which will pull up every previous mention (including numerous questions) as well as many solutions and techniques that could offer a better explanation that the "shot in the dark" method you are relying on now.

Often also, many are enlightened simply by reading the many threads in the organized forums that make up VodaTalk, and being persistent enough to drill in to previous pages beyond the first page that presents.....there are literally over 100,000 posts in these forums, dealing with many eclectic nusance of web development and possibilities.

We are here to help, but it is often difficult to know how when questions are posed unclearly or without enough "framework" to decipher your meaning....
__________________
_____________________________________________________ .*.* . .* . * . * .*
My Websites... VodaHost Support....Soholaunch Support....osCommerce Support
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old 11-05-2007, 06:00 AM
Phoubers's Avatar
Sergeant
 
Join Date: Oct 2007
Location: :D
Posts: 34
Default Re: What is The Differnece

Well for starters, HTML is Hyper Text Markup Language.

Php is PHP Hypertext Preprocessor

You must use html in every web page. In some cases you don't need the .html extension. If you have php in your web page it must be labeled .php, even though your page has php you must have html in your page. An example is

Document Name: index.html

<html>
<head>
<title>My Site</title>
</head>
<body>
Some Stuff here
</body>
</html>

An Example with php

Document Name: index.php

<html>
<head>
<title>My Php Site</title>
</head>
<body>
<?php //Even though we have php in our page we must still have those basic html codes and our page must be labeled with a php extension ?>
</body>
</html>

I hope this helped.

Matt
__________________
No its not Fowbers its foobers :D
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old 11-05-2007, 06:49 AM
Vasili's Avatar
Generalissimo
 
Join Date: Mar 2006
Posts: 9,291
Default Re: What is The Differnece

Good technical example, Matt, but is it really an answer that he can use?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old 11-05-2007, 03:50 PM
Watdaflip's Avatar
Brigadier General
 
Join Date: Sep 2005
Location: Cincinnati, Ohio
Posts: 1,640
Default Re: What is The Differnece

.html is for a static webpage, it loads the same data every time it is executed in your browser. If you plan on making the basic website, .html will do.

.php is file for a scripting/programming language (the PHP language), it allows you to have a much more dynamic website, that is the content on your page can change based on a predetermined set of conditions. It allows you to do things like draw information from a database and display it, generate images, pdf's, zip archives, or downloads on the fly. You can upload files to your website, create a user management system (user register/login), any many many other cool things.

Probably one of the most immediate and best example of php I can give is this forum you are using right now. It is created uses php, and uses a database to store content.

As Phoubers has explained no matter what extension you use, nearly any file type that you can load in your browser uses HTML to display the content that you see, the difference between .html and .php is that this HTML code that is used is static in a .html file, but in .php can change every time the page loads to display different content.

I hope that helps

PS. I personally use .php 99% of the time, regardless if the .php file will contain a php script or not. This way if I ever want to add one, I don't have to worry about changing the file type, and consequently all of my links to that file.
__________________

Register/Login Script
Do you use a Password Protected Directory? Need a way to allow users to make their own account, try my .htaccess Login Script
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT +1. The time now is 10:15 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC7
2007 VodaHost.com - All Rights Reserved

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 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55