The command ‘file_get_contents’ does just that it reads the file like a page from a book,
a web browser by contrast interacts with the file… javascript runs, AJAX requests are made
& cookies are placed or read.
So your script has to ‘Talk’ to the target webpage, first sending information then listening for a reply.
The url doesnt return the correct headers for php file_get_contents() to interpret. This could be due to the fact that when i go to that url it says i should provide a compaign_id.
Missing parameter: _campaignID.
So in your browser you get to see that but because in reality the headers send from that url return the status code 500 file_get_contents will interpret that as “internal server error”. If you use chrome you can see this if you do ctrl+shift+i and go to the tab “network” then reload the page you will see “status” 500 internal server error. In firefox and opera you can also see this.