PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I've got the following code that is posting to a third party billing site. The problem is that it should be following through to the site's hosted page. Unfortunately, this code is simply barfing the contents of that page back into my site's calling page, rather than merrily forwarding off to the third party. I read that this is commonly due to php being in safe mode or having a locked root, but that’s not the case here, as both of those are disabled when I check phpinfo(). I've got to go through the proxy in order to get out. Could that be what's stopping things? There are no errors in the agent if I check it after the call. Am I missing something obvious?
n8lieby wrote:Unfortunately, this code is simply barfing the contents of that page back into my site's calling page, rather than merrily forwarding off to the third party.
cURL will perform the request from the server, not the client. Therefore, it is to be expected that either the content will output or return the content as a variable, but never will perform the request on behalf the client.