Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.
One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.
<?php $data = file_get_contents('http://portal/'); echo $data; ?>
Warning: file_get_contents(http://portal/) [function.file-get-contentI also tried forcing the script through our proxy server:
s]: failed to open stream: HTTP request failed! HTTP/1.1 401 Unauthorized in F:\Inetpub\wwwroot\portal2 \test.php on line 2
<?php $opts = array('http' => array('proxy' => 'tcp://192.168.0.39:801', 'request_fulluri' => true)); $context = stream_context_create($opts); $data = file_get_contents('http://portal/', false, $context); echo $data; ?>
Warning: file_get_contents(http://portal/) [function.file-get-contentI have also tried returning the data for http://www.google.com, http://www.bbc.co.uk and our corporate website http://www.landau-forte.org.uk, all of which fail with this error message:
s]: failed to open stream: HTTP request failed! HTTP/1.0 403 Forbidden in F:\Inetpub\wwwroot\portal2 \test.php on line 4
Warning: file_get_contents(http://www.landau-forte.org.uk/) [function.file-get-contentI have asked our admins to provide me with unfiltered access through the proxy, which they have, but it still returns the same error messages. I have been making the proxy server changes in Internet Options on the server, is this right? Also, just to point out, none of the websites I am trying to get the contents for are password protected and I can access them via IE on the server.
s]: failed to open stream: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. in F:\Inetpub\wwwroot\portal2 \test.php on line 2
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.