Include code from a PHP stream

后端 未结 4 482
旧巷少年郎
旧巷少年郎 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:43

    Include can take arbitrary urls. Read this. Here is an example HTTP code taken from there:

    
    

    And just change it to include "template://$thevalue";

提交回复
热议问题