I have an application which reads a textarea and runs the textarea as a PHP file.
The textarea content is saved in a txt file and runs with eval(file_get_contents('myfile.txt'));
but I want only to allow user to use echo
, if
statement, for
, while
without using mysql(i)
functions and some other functions like unlink
.
EDIT A little bit more explaining: How can I disallow in a specific file using php functions like mysql and file functions ?
Is there any options to do this?