Simple script to check GD libraries and Safemode

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   Simple script to check GD libraries and Safemode
BigJim
CZ Super Newbie
BigJim has been a member for over 17 year's 17 Year Member
Gender: Male
Status: Offline
Joined: Jun 09, 2006
0.01 posts per day
Posts: 60
Points: 1,327
   
Just a simple script to check if you have GD libraries installed and to check the status of Safemode.
Save as test.php or any name you like as long as it has the .php extension and upload to your servers root and call it through your web browser: [ Register or login to view links on this board. ]

<?php
echo "<html><head><title>Testing Script</title></head><body>";
// Check for safe mode
$error=0;
if( ini_get('safe_mode') ){
echo '<font color="red">SAFE MODE is enabled.';
$error=1;
} else {
echo '<font color="green">Safemode is not enabled.</font><p />';
}
if (extension_loaded('gd'))
{
echo '<font color="green">You have GD.</font><p />';
} else { echo '<font color="red">You do not have GD.'; }
?>



Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum