ILLstyle

msg:1247446 | 1:44 am on Nov 12, 2004 (gmt 0) |
I think it all depends on how your server is set up. What you have to do is set the server to parse .html files just like .php files.
|
coopster

msg:1247447 | 11:37 am on Nov 12, 2004 (gmt 0) |
Exactly. Hiding PHP [php.net] describes how to do so if you are using Apache as your http server.
|
ILLstyle

msg:1247448 | 3:36 pm on Nov 12, 2004 (gmt 0) |
coopster Does this type of set up eat a lot of server resouces? I mean some of your pages might just be plain HTML with no PHP included, but this sever will still parse it as php. is this a waste, or will it slow things down?
|
coopster

msg:1247449 | 3:48 pm on Nov 12, 2004 (gmt 0) |
There will be a slight performance hit because all HTML will be parsed through the PHP engine. But if you can tell the difference I would be surprised. I have one entire site setup running backend database hits on every page served up. Each and every page! They all get parsed by PHP, plus database reads! It is so fast you can't tell the difference. The end user thinks it's static html. Oh, there you go, along with the PHP parsing and database connections/queries, I'm running the request through mod_rewrite each time too. And you would never know it unless I told you ;)
|
ILLstyle

msg:1247450 | 4:55 pm on Nov 12, 2004 (gmt 0) |
Great coopster Thanks
|
someone

msg:1247451 | 5:17 pm on Nov 12, 2004 (gmt 0) |
cool, thanks everyone for your answers.
|
|