Support Forums
Use PHP in a text file? - Printable Version

+- Support Forums (https://www.supportforums.net)
+-- Forum: Categories (https://www.supportforums.net/forumdisplay.php?fid=87)
+--- Forum: Coding Support Forums (https://www.supportforums.net/forumdisplay.php?fid=18)
+---- Forum: PHP The Hypertext Preprocessor (https://www.supportforums.net/forumdisplay.php?fid=21)
+---- Thread: Use PHP in a text file? (/showthread.php?tid=22783)



Use PHP in a text file? - Blic - 10-20-2011

Any way to do this? Thanks.
Pirate


RE: Use PHP in a text file? - Project Evolution - 10-23-2011

Are you wanting to run PHP code from this file or something? Can we have more details?


RE: Use PHP in a text file? - Fox - 10-23-2011

If you are talking about executing PHP code from a .txt file, I don't think that it is possible.


RE: Use PHP in a text file? - ChromeWolf - 10-23-2011

If you're trying to make a PHP file in Notepad, make sure you save the file as whatever.php and make sure where it says the type of file. It say's ALL FILES.


RE: Use PHP in a text file? - Project Evolution - 10-25-2011

(10-23-2011, 02:21 PM)Fox Wrote: If you are talking about executing PHP code from a .txt file, I don't think that it is possible.

Actually it is if done properly. Smile
http://php.net/eval