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.

Closed Thread
 
Thread Tools
  #1  
Old 11-05-2007, 04:00 AM
Produced's Avatar
Sergeant Major
 
Join Date: Sep 2007
Location: South Gate, CALIFORNIA
Posts: 88
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!
  #2  
Old 11-05-2007, 05:27 AM
Vasili's Avatar
General & Forum Moderator
 
Join Date: Mar 2006
Posts: 10,987
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....
__________________
Choice Pro SEO
Choice Pro Webs
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #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!
  #4  
Old 11-05-2007, 06:49 AM
Vasili's Avatar
General & Forum Moderator
 
Join Date: Mar 2006
Posts: 10,987
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!
  #5  
Old 11-05-2007, 03:50 PM
Watdaflip's Avatar
Major General
 
Join Date: Sep 2005
Location: Cincinnati, Ohio
Posts: 2,143
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!
Closed Thread


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 Off



All times are GMT +1. The time now is 03:05 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC7
2005-2009 VodaHost Web Hosting Your Perfect Web Host - 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 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210