I just spent an entire 12 hour work day trying to figure out what was breaking my photo uploads only to find that phpinfo() was disabled and the script was calling on it to determine the gd status. <br /><br />As a heads up to others, if you're experiencing problems check your upload or other scripts that might be calling on this function.<br /><br />As a note to TCH, <i><b>please, please, please</b> </i>start notifying us of these changes (no matter how small they may seem). It may seem that the only consequence of disabling phpinfo() is not being able to pull up the info page but for those of us using extensive scripting, changes such as this can wreak havoc on our sites causing us to try to track down a problem that we should have been informed of in the first place. <br /><br />A new forum or extensive thread announcing changes (the seemingly "little ones") seems like a great idea, giving us a reference to check changes so we can save time trying to figure out for ourselves why things aren't working.<br /><br />Thanks for the ears.<!--content-->
I'm just curious what script broke, whether it was one other customers may have or one you wrote yourself.<br /><br />The reason I ask is twofold. The first is so others can know it may become a problem for them and the other is to see what non-standard scripts are out there in common use. I'm no PHP pro but it seems the "normal" way to check to see if gd is loaded is to use<br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->if(extension_loaded("gd"))<!--c2--></div><!--ec2--> Maybe you could incorporate this into your script instead of trying to parse phpinfo? <br /><br />Hope it helps.<!--content-->
It's a pretty common check for the gd version found in image upload scripts:<br /><br />function checkgd(){ <br /> $gd2=""; <br /> ob_start(); <br /> phpinfo(8); <br /> $phpinfo=ob_get_contents(); <br /> ob_end_clean(); <br /> $phpinfo=strip_tags($phpinfo); <br /> $phpinfo=stristr($phpinfo,"gd version"); <br /> $phpinfo=stristr($phpinfo,"version"); <br /> preg_match('/\d/',$phpinfo,$gd); <br /> if ($gd[0]=='2'){$gd2="yes";} <br /> return $gd2; <br />} <br /><br />Thanks for the alternate means, but, honestly, it was no problem for me to find a solution once I knew phpinfo() had been disabled. <i>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.</i> 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!<!--content-->
Hello, <br /><br />I am sorry that you had problems but do to the severity of the issues the upgrade needed be done. <br />We did post in our Scheduled Server Maintenance and Updates forum about this as soon as we knew we were going to proceed with the upgrade. <br />You can review upgrade notices like <a href="http://www.totalchoicehosting.com/forums/index.php?showtopic=24946" target="_blank">this one </a><br />and can also set your self up to be notified of any furhter upgrades or server maintenance by subscribing to that forum by simply clicking on Forum Options and clicking on Subscribe to this forum. <br />This way you will be alerted for future planned upgrades. <br /><br /> <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/smile.gif" style="vertical-align:middle" emoid="" border="0" alt="smile.gif" /><!--content-->
I just saw that info in the link you sent, so my bad for missing that. <br /><br />Have there been any changes in our ability to modify settings for php.ini via .htacess? Scripts that ran perfectly before (after my own modifications) are now timing out big time and I have to keep refreshing the page over and over and over again until they complete.<!--content-->
I do image uploading in the guestbook script I maintain but the script just uses<br /><br />if (is_function(imagejpeg))<br /><br />to see if GD is installed when making thumbnails. But as Jim says using extension_loaded('GD') would seem a far better method of checking if it is installed not to mention less cpu intensive as parsing the phpinfo().<!--content-->
I'm just curious what script broke, whether it was one other customers may have or one you wrote yourself.<br /><br />The reason I ask is twofold. The first is so others can know it may become a problem for them and the other is to see what non-standard scripts are out there in common use. I'm no PHP pro but it seems the "normal" way to check to see if gd is loaded is to use<br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->if(extension_loaded("gd"))<!--c2--></div><!--ec2--> Maybe you could incorporate this into your script instead of trying to parse phpinfo? <br /><br />Hope it helps.<!--content-->
It's a pretty common check for the gd version found in image upload scripts:<br /><br />function checkgd(){ <br /> $gd2=""; <br /> ob_start(); <br /> phpinfo(8); <br /> $phpinfo=ob_get_contents(); <br /> ob_end_clean(); <br /> $phpinfo=strip_tags($phpinfo); <br /> $phpinfo=stristr($phpinfo,"gd version"); <br /> $phpinfo=stristr($phpinfo,"version"); <br /> preg_match('/\d/',$phpinfo,$gd); <br /> if ($gd[0]=='2'){$gd2="yes";} <br /> return $gd2; <br />} <br /><br />Thanks for the alternate means, but, honestly, it was no problem for me to find a solution once I knew phpinfo() had been disabled. <i>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.</i> 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!<!--content-->
Hello, <br /><br />I am sorry that you had problems but do to the severity of the issues the upgrade needed be done. <br />We did post in our Scheduled Server Maintenance and Updates forum about this as soon as we knew we were going to proceed with the upgrade. <br />You can review upgrade notices like <a href="http://www.totalchoicehosting.com/forums/index.php?showtopic=24946" target="_blank">this one </a><br />and can also set your self up to be notified of any furhter upgrades or server maintenance by subscribing to that forum by simply clicking on Forum Options and clicking on Subscribe to this forum. <br />This way you will be alerted for future planned upgrades. <br /><br /> <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/smile.gif" style="vertical-align:middle" emoid="" border="0" alt="smile.gif" /><!--content-->
I just saw that info in the link you sent, so my bad for missing that. <br /><br />Have there been any changes in our ability to modify settings for php.ini via .htacess? Scripts that ran perfectly before (after my own modifications) are now timing out big time and I have to keep refreshing the page over and over and over again until they complete.<!--content-->
I do image uploading in the guestbook script I maintain but the script just uses<br /><br />if (is_function(imagejpeg))<br /><br />to see if GD is installed when making thumbnails. But as Jim says using extension_loaded('GD') would seem a far better method of checking if it is installed not to mention less cpu intensive as parsing the phpinfo().<!--content-->