I'm trying to get the contents of an external PHP file (pre-processed):
file_get_contents ('http://www.example.org/myfile.php');
When I do this, I get an error:
Warning: file_get_contents () [function.file-get-content]: php_network_getaddresses: Getaddrinfo fail
and:
> Warning: File_get_contents (http://www.example.org/myfile.php) [function.file-get-content]: failed to open the stream: php_network_getaddresses: getaddrinfo failed: node name and pronouns have not been provided, which are not / applications Not known in
Any ideas which I could do?
Thanks in advance!
Edit: I have the permission_value_fopen set to "On".
You can probably use curls.
function Curl ($ url) {$ ch = curl_init (); Curl_setopt ($ ch, CURLOPT_URL, $ url); Curl_setopt ($ CH, CURLOPT_RETURNTRANSFER, 1); $ Return = curl_xac ($ CH); Curl_close ($ ch); Return refund; } $ String = curl ('http://www.example.org/myfile.php'); // String with data
Comments
Post a Comment