Kahuki Webmaster Forum and Discussion Community  

Go Back   Kahuki Webmaster Forum and Discussion Community > Website Development & Management > Web Hosting

Web Hosting Discussions on all aspects of web hosting, choosing a host, reviews and technical things.



Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-01-2007, 07:30 PM
Member
 
Join Date: Mar 2006
Posts: 60
James L. Dean is on a distinguished road
How to parse .htaccess files as PHP?

For parsing .html file you can add

"AddType application/x-httpd-php .html" in .htaccess, but putting
"AddType application/x-httpd-php .htaccess" in .htaccess it doesn't work (unbelievable ha ha)

How can I adjust that in Linux Environment?

Reply With Quote
  #2 (permalink)  
Old 05-01-2007, 08:56 PM
Rookie
 
Join Date: May 2006
Posts: 4
6139639 is on a distinguished road
Why the heck do you want to parse an .htaccess file as php? What possible use would that ever have?

Answer: don't do it.

Reply With Quote
  #3 (permalink)  
Old 05-02-2007, 03:32 AM
SuZ SuZ is offline
Rookie
 
Join Date: Jul 2007
Posts: 3
SuZ is on a distinguished road
I wouldn't even think of trying to do that. Why expose server controls?

The htaccess file is used to set server and environmental variables, if you want to expose those to the whole world just publish them in your html. Linux attempts to protect users from things that shouldn't be exposed for a very valid reason.

Now all that being said.. it is just a text file and php can indeed parse it.

Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
In PHP, what function do I use to incorporate the name of files into PHP files? sai14 PHP 4 07-14-2008 06:39 AM
.htaccess and .htpasswd I have them protecting files that but where is the password? subhamoy Web Hosting 3 04-28-2007 01:38 PM
In PHP, what function do you use to incorporate the name of files into PHP files? czjdell PHP 1 04-22-2007 05:23 PM
How can I create an .htaccess file on a Mac that will keep the .htaccess so I can upload to my webserver? fivien Web Hosting 2 09-12-2006 03:08 PM
Can you mix in apache's htaccess with asp to create a login that will use the htaccess, but asp can also pick joseph Web Hosting 1 08-22-2006 06:33 PM


All times are GMT. The time now is 05:50 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0