Dale_G Posted July 3, 2008 Share Posted July 3, 2008 Hey everyone, pretty basic question so I'll start off with an example. I have, on my server a file named "echo.txt" which has, in plain text, "echo 'hello world';". I also have a php file named "read.php". How can I read in "echo.txt" using "read.php" and attempt to PARSE whatever text is inside? So, say, if I update "echo.txt" to "echo 'hello there';", when I view "read.php" it will echo out "hello there" parsed straight from "echo.txt"? Quote Link to comment Share on other sites More sharing options...
lemmin Posted July 3, 2008 Share Posted July 3, 2008 Put <?php ?> tags in echo.txt and use include "echo.txt"; in read.php Quote Link to comment Share on other sites More sharing options...
Dale_G Posted July 3, 2008 Author Share Posted July 3, 2008 Thanks. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.