What's wrong

11 views
Skip to first unread message

王刚

unread,
Aug 18, 2007, 2:05:11 AM8/18/07
to Gelato CMS
Warning: fsockopen() has been disabled for security reasons in /home/
www/***/classes/functions.php on line 193

Netfilmx

unread,
Apr 19, 2012, 5:00:37 AM4/19/12
to gela...@googlegroups.com
What do you doing? =l

The 193 line are it:

function _file_get_contents($path) {
// Modified function from: 
if (!preg_match('/^http/i', $path)) {
if ($fp = fopen($path, 'r')) {
return fread($fp, 1024);
} else {
return false;
}
}

The problem is a security issue with "file get contents" but this is solved with "curl".

Regards.
Reply all
Reply to author
Forward
0 new messages