I’d like to change one text file on my server to be parsed by PHP – how do I do this?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I assume you already have the appropriate lines in Apache to enable PHP in general. To use PHP to parse a non .php ending file, you can use a ForceType directive in either an htaccess file or in the apache config. For example:
That expression is flexible and you can add additional files to match within the parentheses using another pipe character.