Let PHP execute some scripts you entered

zhaozj2021-02-16  54

In some systems, users can enter their own PHP scripts, and then do the PHP scripts just entered in this page, how did you do it?

Method 1: Depart the script that you just entered, deposited in xxx.php, then in this page request_once this xxx.php, I think this is not the final method

Method 2: I don't know, I feel that there is a way two

-------------------------------------------------- -------------

evAl ()

-------------------------------------------------- -------------

$ text = "echo 'aaaa'";

EVAL ("$ text;");

?>

or

$ text = ""

EVAL ("?> $ text");

?>

转载请注明原文地址:https://www.9cbs.com/read-19184.html

New Post(0)