Jump to content

[SOLVED] Can I use PHP in a txt file


duvys

Recommended Posts

I have a .txt file that I need to keep the extension .txt and I need to pull some information from a MySQL database.

 

Is there any way I can get the server to read php commands in this file even though it doesn't end in .php ?

 

I would rather not set all txt files on the server to run as PHP.

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/51506-solved-can-i-use-php-in-a-txt-file/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.