Jump to content

[SOLVED] Reading in PHP externally as text and parsing it


Dale_G

Recommended Posts

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"?

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.