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
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.