We value your feedback.
Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!
<?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.
|Checking https returns 301||21||55|
|Echo'd values in dropdowns||6||28|
|Why is my $_POST not going to results page||10||35|
|Need to make a cronjob to check a remote ftp folder if file exists, if so, email me. Best to use Bash or PHP? (AS400, or Ubuntu)||5||18|