Can I do a CURL request to the same server?

后端 未结 3 1421
予麋鹿
予麋鹿 2020-12-04 19:42

I need to implement a way to make POST calls to pages located on the same server or in another server. We cannot use include because the files that we are calling usually ca

3条回答
  •  悲&欢浪女
    2020-12-04 20:17

    You should refactor your code. In addition to what Marc B mentioned, this approach will unnecessarily slow down your script (potentially by a large margin) and cause lots of confusion. No offense, but this is just an incredibly hacky fix for bad logic.

提交回复
热议问题