View Full Version : mapping .html -> PHP 3
Jacob Stetser
01-22-1999, 05:45 PM
Is there a way to make .html files parsed by PHP? Something like:
AddHandler server-parsed .shtml
in the .htaccess file
And another question... I want to do that thing where you authenticate with a login/password form on the page rather than the Authentication window that pops up.. anyone know how to do it?
Terra
01-22-1999, 11:37 PM
FQuest's policy of allowing AddHandler overrides can change without notice... We try to maximize the Apache servers by only asking of it what's needed... To parse .html as PHP everytime introduces unnecessary overhead...
I would highly recommend renaming only the files that need to be parsed to either '.shtml' for SSI and '.php' or '.php3' for PHP3 interpretation...
As far as authentication, look no further than: http://phplib.shonline.de/
I will be using that library extensively for some of our CNC modules that are planned...
--
Terra
--Watching the world in rose colored glasses--
FutureQuest.net
Jacob Stetser
01-23-1999, 12:25 AM
Gotcha.
I was expecting that answer, actually. Interesting thing is, at least on my end, that only a few of my total pages will end up with .html extensions... most of them are .shtml to handle some includes and stuff like that... http://www.aota.net/ubb/smile.gif
In what I'm working on now, it's like a 10:1 ratio .shtml to .html http://www.aota.net/ubb/smile.gif
Anyhow, I expected such a policy, because I imagine the PHP engine is pretty resource-intensive. That's why I asked about the authentication with PHP.. if I can do that, I won't need to worry about having special authentication code appended to each and every one of my client's pages... and that authentication appending is what prompted the mapping question in the first place.
So, it's no problem, and I realized, on my drive home, it's more efficient to authenticate once than on every page anyhow, and I'm going, durn it, to figger out how!
Jake
vBulletin® v3.6.8, Copyright ©2000-2008, Jelsoft Enterprises Ltd.