Why can php://input be read more than once despite the documentation saying otherwise?

后端 未结 2 1066
旧巷少年郎
旧巷少年郎 2020-12-11 14:52

The PHP documentation states that php://input can only be read once.

In my application I need to read it twice, once for authentication purposes and onc

2条回答
  •  佛祖请我去吃肉
    2020-12-11 15:27

    Maybe they mean fseek() or rewind() aren't available. Have you tried one of those functions on an opened php://input ?

提交回复
热议问题