SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Evangelist
    Join Date
    Sep 2002
    Location
    Downunder
    Posts
    541
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Unhappy Is this code correct, determining if GD installed

    Code:
    <?php
    echo "<html><head><title>Testing Script</title></head><body>";
    // Check for safe mode
    if( ini_get('safe_mode') ){
    echo 'SAFE MODE is enabled<p />';
    $error=1;
    } else {
    echo 'SAFE MODE is not enabled.<p />';
    }
    if (extension_loaded('gd'))
    	{
    	echo 'You have GD.<p />';
    } else { 
    	echo 'You do not have GD, you will need to install GD<p />'; 
    	$error =1;
    }
    if ($error == 1)
    {
    echo '<b>Please correct the above error(s) before continuing with the install.</b>';
    } else {
    echo '<b>You are looking good!</b>';
    }
    echo "</body></html>";
    ?>
    It's telling me the GD isn't installed, but the hosting company is claiming otherwise ?

    Apologises for the brevity of this, but am one hand typing due to torn muscle in shoulder .... man those chess games can get rough

  2. #2
    dooby dooby doo silver trophybronze trophy
    spikeZ's Avatar
    Join Date
    Aug 2004
    Location
    Manchester UK
    Posts
    13,807
    Mentioned
    158 Post(s)
    Tagged
    3 Thread(s)
    If this is for your own use to check if your server hosts are pulling you chain, use php_info(); to get ll the details. It will tell you whether it is installed and which version.

    SpikeZ
    Mike Swiffin - Community Team Advisor
    Only a woman can read between the lines of a one word answer.....

  3. #3
    SitePoint Evangelist
    Join Date
    Sep 2002
    Location
    Downunder
    Posts
    541
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yeah am trying to get some gallery software running which needs GD2, tried phpinfo and didn't notice anything to do with the GD fairly new to the whole thing so maybe not knowing what to look for.

    If it ain't a problem could some one post up what l could expect to see using phpinfo if the GD is installed.

  4. #4
    dooby dooby doo silver trophybronze trophy
    spikeZ's Avatar
    Join Date
    Aug 2004
    Location
    Manchester UK
    Posts
    13,807
    Mentioned
    158 Post(s)
    Tagged
    3 Thread(s)
    no problem,
    you need to look for something like...

    gd
    GD Support enabled
    GD Version bundled (2.0.15 compatible)
    FreeType Support enabled
    FreeType Linkage with freetype
    GIF Read Support enabled
    JPG Support enabled
    PNG Support enabled
    WBMP Support enabled
    XBM Support enabled

    If it helps, use ctrl+f (find) and look for GD.

    SpikeZ
    Mike Swiffin - Community Team Advisor
    Only a woman can read between the lines of a one word answer.....

  5. #5
    SitePoint Evangelist
    Join Date
    Sep 2002
    Location
    Downunder
    Posts
    541
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for the help Spike. Will check it this evening, as am at me dayjob.... and ftp can't get through the firewall here


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •