RE: Renaming all pages to .php

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



You can easily add the .php extension to any .htm(l) page that you have
with no worries as long as you have PHP installed and configured
properly. 

The only "problem" is that page load will be SLIGHTLY slower since PHP
will search all .php pages for PHP code to evaluate. Upon finding none,
it will simply return the HTML to the requester. But note that this is a
tiny bit longer than your web server just serving the page without
passing it through PHP.

Naming all files "index.XXX" will be a good idea. Though realize that
some people might link directly to the file itself (which can sometimes
become visible with different browsers and different activities). But
none-the-less, it will work for most users if they do decide to bookmark
the folder.

-M

-----Original Message-----
From: David Blomstrom [mailto:GeoBear@geobop.com] 
Sent: Thursday, June 19, 2003 10:14 PM
To: php-db@lists.php.net
Subject:  Renaming all pages to .php

I'd like to get some feedback from this forum. Do you agree that a page 
without php functions or server side includes can be put online with
either 
a .htm or .php function? If I never add a php function to a page with a 
.php extension, could that cause some kind of problems?

Also, I'm thinking of naming all my pages "index" and sticking them
inside 
folders. That way, visitors can reach a page by typing in 
www.geobop.com/birds/ , whether the full URL is 
www.geobop.com/birds/index.htm or www.geobop.com/birds/index.php  Is
this a 
good plan, or do you see any problems?

Thanks!



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php





-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux