Re: Couple of beginner questions

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

 



On Fri, Jan 9, 2009 at 12:18 PM, Gary <gwpaul@xxxxxxx> wrote:
> Can I create a page with the php extension that contains only contains html
> and no php?  If so are there advantages/disadvantages?
>
> Can I mix and match file formats (php/html) in a single site?

If it were me, I'd make sure all the files were .php.  If you have a
page right now that is static, but needs to become dynamic, then
you're in for some hurt.  Never create 404's.  You can of course do a
301 redirect to indicate the html has moved to php, but that is really
annoying.  The best solution though is to not have any file extensions
on your urls to begin with.  That is out of the scope of this email
though.

You can force php to run .html files, but then you've just really
killed the performance of your web host.  Servers are really fast at
serving static files, but the second you load php, even to just do a
<?php echo 'hello world' ?> you've slashed your maximum requests per
second significantly.

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux