It's a pretty common check for the gd version found in image upload scripts:
function checkgd(){
$gd2="";
ob_start();
phpinfo(8);
$phpinfo=ob_get_contents();
ob_end_clean();
$phpinfo=strip_tags($phpinfo);
$phpinfo=stristr($phpinfo,"gd version");
$phpinfo=stristr($phpinfo,"version");
preg_match('/\d/',$phpinfo,$gd);
if ($gd[0]=='2'){$gd2="yes";}
return $gd2;
}
Thanks for the alternate means, but, honestly, it was no problem for me to find a solution once I knew phpinfo() had been disabled. The problem is that I spent 12 hours trying to find the source of the problem because no one informed me that the function was no longer available. This has happened more than once that I've had to spend entire days tracking down a problem that could have been prevented had a change been widely announced. Can we please have some sort of announcement system for minor changes? I'm subscribed to everything I know of but critical information is being missed and I simply can't afford any more days like this. I'm pooped!