RE: [PHP-DB] Renaming all pages to .php
| From: | Mike Brum | Date: | Fri, 20 Jun 2003 02:26:18 +0000 |
| Subject: | RE: [PHP-DB] Renaming all pages to .php | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-28760@lists.php.net to get a copy of this message | ||
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: [PHP-DB] 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