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'm pretty sure it doesn't echo it. Are you sure you're not echoing $result somewhere later in the code? Stick "exit();" immediately after the call to curl_exec() ... if you get a bank page then it's not echoing.
onion2k wrote:
I'm pretty sure it doesn't echo it.
Unfortunately you're wrong. By default curl_exec dumps everything it receives into standard output stream (that's being the webpage when you're running as apache module). CURLOPT_RETURNTRANSFER=true option tells it to not do so.