Testing allow url open"; $url='http://www.affiliatefeeds.nl/images/code/com_datafeeds.txt'; if (ini_get('allow_url_fopen') != 1) { print '

allow url fopen not set

'; print "But will try anyway"; } $content=file_get_contents($url); if ( $content ) { print '

allow url open success

'; print '

Release notes

'; print '
'.$content.'
'; $can_download=true; } else { print '

allow url failed

'; print "

Testing curl

"; if ( ! function_exists('curl_init') ) { print '

curl missing

'; } else { $ch = curl_init($url); curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HEADER, 0); $content=curl_exec($ch); if ( $content ) { print '

curl success

'; print 'Ensure administrator/cache is writable for the webserver'; print '

Release notes

'; print '
'.$content.'
'; $can_download=true; } else { print '

curl failed

'; print "
";
        print_r(curl_getinfo($ch));
print "
"; print "
";
        echo curl_error($ch);
print "
"; print 'Host blocking outgoing connections'; } curl_close($ch); } } print '

Summary

'; if ( $can_download ) { print '

You can download files

'; } else { print '

! SHOWSTOPPER:you can not download files

'; $dir=dirname(__FILE__); print 'You can upload csv/xml files manually and use them
'; print 'for example upload a file feed.csv to '.$dir.' and use '.$dir.'/feed.csv as feed url'; } print "

Checking mysql

"; $mysqlversion=mysql_get_server_info(); if ( $mysqlversion ) { if ( version_compare($mysqlversion,'4.1.2','<') ) { print '

Warning: you are running an old version of mysql this might affect collation

'; echo 'mysql version : '.$mysqlversion; } } else { print '

mysql check failed

'; print 'This is not a problem (yet) probably the script can not connect without a password, please check that your mysql version > 4.1.2'; } $parser_check = xml_parser_create(); xml_parse_into_struct($parser_check, '&', $values); xml_parser_free($parser_check); $xml_is_sane = isset($values[0]['value']); if (!$xml_is_sane) { print '

Warning: XML is broken

'; echo 'php version : '.PHP_VERSION; echo '
libxml version : '.LIBXML_DOTTED_VERSION; echo 'Visit the website for more information'; } else { echo "

XML is OK!

"; } ?>

Checking for exec and cli php

exec is ok'; $x=exec('which php'); if ( $x == '' ) { print '

php not in path

'; print "manual configuation of bg job required"; } else { print '

php found'.$x.'

'; $x=exec($x . ' --version'); print "Version information :$x ( if empty php cli not executable )"; } } else { print '

exec is not working

'; } ?>