Include code from a PHP stream

后端 未结 4 512
旧巷少年郎
旧巷少年郎 2021-01-06 18:16

I\'m wondering if it is at all possible to create a stream wrapper in order to load some code from an array into using something like the following



        
4条回答
  •  灰色年华
    2021-01-06 18:38

    eval, the word, isn't evil. Things you can do with it are. Any means of doing what you want will have the same risk as eval. So just use eval, since securing it is a more 'known' problem.

提交回复
热议问题