in reply to get() from website hangs
Since I am using a free perl hosting called Zettahost, I am wondering if it is possible maybe they do not let free users fetch web pages, or maybe it's a security issue and they don't want anyone to do that. I don't know. Maybe fetching web pages is a privilege that has not been granted to me. Is that possible? They use a Debian Linux server.
I tried to fetch website data using PHP, and it failed as well. So, there's got to be something with the server or the way it is configured. It's not letting me download anything!
<?php $fileHTML = file_get_contents('http://www.wzsn.net/'); $title = substr($fileHTML, strpos($fileHTML,'<TITLE>') + 7, strpos($fi +leHTML,'</TITLE>') - (strpos($fileHTML,'<TITLE>') + 7)); echo $title; ?>
It says, "Warning: file_get_contents(http://www.wzsn.net/): failed to open stream: Connection refused in /srv/disk13/2468845/www/ildispaintings.com/xget.php on line 7"
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: get() from website hangs
by trwww (Priest) on Sep 14, 2019 at 01:42 UTC | |
Re^2: get() from website hangs
by jcb (Parson) on Sep 14, 2019 at 21:40 UTC |