index.php vs index.html

ddcamp

New Member
Joined
Nov 4, 2006
Messages
2
Reaction score
0
Just wanted to know what is difference between *.php(s) or *.htmls on your website? I noticed that some websites are running on index.php instead of index.html and other webpages in *.php too? to my understanding, the website runs more fast if you do in php language or what?

I'm web designer and I normally code xhtml, css and flash/javascript and sometimes some back-end programmings (php, mysql, and perl) if it is needed to run some apps and others.

Looking forward to some answers to the question.

Thanks!
 
The only difference is that the .php extention tells the web server that the page may include PHP code. PHP is used for producing dynamic web pages while HTML produces static web pages. Actually, HTML web pages load faster than PHP web pages.

While this site is written in PHP, the dynamic URLs are converted into static looking html web pages.
 
PHP: Personal Hypertext Preprocessor is a reflective programming language originally designed for producing dynamic Web pages and remote application software. PHP is used mainly in server-side scripting, but can be used from a command line interface or in standalone graphical applications. Textual User Interfaces can also be created using ncurses. Powerful scripts and CHEAP!
 
The only difference is that the .php extention tells the web server that the page may include PHP code. PHP is used for producing dynamic web pages while HTML produces static web pages. Actually, HTML web pages load faster than PHP web pages.

While this site is written in PHP, the dynamic URLs are converted into static looking html web pages.
Yep, HTML loads faster because it's directly from the source.

With PHP, it has to access information as if it was running a program before converting to HTML language and then posting online.
 
Yep, HTML loads faster because it's directly from the source.

With PHP, it has to access information as if it was running a program before converting to HTML language and then posting online.

Interesting.. I thought PHP is much faster because, of sizable and powers.

For example.. alldeaf is using php based. If alldeaf is using html, then it's like pulled 10 feet boat using bug VW car.
 
Interesting.. I thought PHP is much faster because, of sizable and powers.

For example.. alldeaf is using php based. If alldeaf is using html, then it's like pulled 10 feet boat using bug VW car.
PHP can retrieve information from a SQL database and list it as posts and threads. HTML doesn't.

HTML could retrieve information through Javascript, but it's not as secure as PHP and can cause problems for some internet browsers. It also takes longer in some cases.

Right now, I'm using a setting where 40 posts are viewed per page. If I were to use HTML, that would be a HUGE file to load up. If I were to use PHP, it would be a small simple-coded file that reads elsewhere and brings it all up in HTML format.
 
HTML could retrieve information through Javascript, but it's not as secure as PHP and can cause problems for some internet browsers. It also takes longer in some cases.
Haven't you all heard of AJAX? You already noticed Ajax in action, whenever you do a 'quick reply' or edit a posting you made earlier.

Ajax and other similiar technologies are now shoring up Web 2.0 and Internet website usability should improve thousandfold.
 
they been told that php can be protect from have hack change on web page.
 
Back
Top