I am trying to generating an XML file, but error come in this file_get_contents() PHP function, this is my code:
function mobile_login1($P1, $P2)
{
$url
I had the same problem, as suggested above, the following worked for me on Centos 7
setsebool -P httpd_can_network_connect on
I had the same problem on a self-configured CentOS6 host with LAMP + Wordpress. The Wordpress wp_remote_get() function did not return results (and didn't return an error) nor did PHP file_get_contents(). Executing this on the host solved the issue.
setsebool -P httpd_can_network_connect on
it turns out it was a problem with on my server:
I ran this line from the terminal to reslove it
setsebool -P httpd_can_network_connect on
thanks for the suggestion guys