PDA

View Full Version : Mapping .txt files as scripts?


vlet
2-22-05, 05:28 PM
Would it be possible to have my spiders.txt actually be a php script?

B&T
2-22-05, 05:58 PM
Would it be possible to have my spiders.txt actually be a php script?
You mean you want a .txt file to process just like a .php file? I think you can do that with htaccess code.

AddHandler application/x-httpd-php .php .txt

But then every .txt file would be sent to php

vlet
2-22-05, 06:02 PM
Yes, that is what I would like to do.

I do not plan on having anything but scripts on my site anyway :)

woot - it worked! Thanks.

B&T
2-22-05, 06:03 PM
Yes, that is what I would like to do.

I do not plan on having anything but scripts on my site anyway :)

woot - it worked! Thanks.
I love a quick fix and a happy ending :)