I have found a possible reason for it and have replicated it many times. It appear to be that php.ini has "allow_url_fopen" disabled (off).
I think I may have fixed this by modifying the status.php page that gets installed when XAMPP is installed
I replaced :
- Code: Select all
$a=@file("$b/php.php");
$php=$a[0];
$a=@file("$b/mysql.php");
$mysql=$a[0];
$a=@file("$b/cgi.cgi");
$cgi=$a[0];
$a=@file("$b/ssi.shtml");
$ssi=$a[0];
$a=@file("$b/perl.pl");
$perl=$a[0];
With this:
- Code: Select all
function get_info($info)
{
$ch = curl_init();
curl_setopt($ch,CURLOPT_URL,$info);
curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
$fp = curl_exec($ch);
curl_close($ch);
return $fp;
}
$php = get_info("$b/php.php");
$mysql = get_info("$b/mysql.php");
$cgi = get_info("$b/cgi.cgi");
$ssi = get_info("$b/ssi.shtml");
$perl = get_info("$b/perl.pl");
Hope this helps all the users I have seen pulling their hair out.