Include code from a PHP stream

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

    Since include can use any appropriate stream and you can register your own stream wrapper, I don't see why not.

    Just for fun you could try an alternative: load your data from memcached and include it using the data stream wrapper.

提交回复
热议问题