GD functionality on abyss

 
Post new topic   Reply to topic    Aprelium Forum Index -> PHP
View previous topic :: View next topic  
Author Message
Arcan3
-


Joined: 07 Aug 2009
Posts: 3

PostPosted: Fri Aug 07, 2009 6:48 am    Post subject: GD functionality on abyss Reply with quote

phpinfo states that GD is installed... i confirmed it by checking the php.ini file... but for some reason it wont work at all ...

Is there any problems with GD - Abyss im not aware off? im just trying to get gd runing to use jdgraph...
Back to top View user's profile Send private message
aprelium-support
-


Joined: 20 Feb 2009
Posts: 356

PostPosted: Fri Aug 07, 2009 10:01 am    Post subject: Re: GD functionality on abyss Reply with quote

Arcan3 wrote:
phpinfo states that GD is installed... i confirmed it by checking the php.ini file... but for some reason it wont work at all ...


What do you mean by it won't work ? Do you have errors or warnings messages ?

Quote:

Is there any problems with GD - Abyss im not aware off? im just trying to get gd runing to use jdgraph...


Abyss Web Server works correctly with PHP packages.
_________________
Support Team
Aprelium - http://www.aprelium.com


Last edited by aprelium-support on Fri Aug 07, 2009 3:27 pm; edited 1 time in total
Back to top View user's profile Send private message Visit poster's website
Toasty
-


Joined: 21 Feb 2008
Posts: 298
Location: Chicago, IL

PostPosted: Fri Aug 07, 2009 2:59 pm    Post subject: Reply with quote

I would try downloading the preconfigured package from the forums here (It is a sticky in the PHP forum).

I'm not sure if that is what you're using or not, but I have used their preconfigured packages since PHP 5.16, and I have yet to even have a hiccup in it.
_________________
Audit the secure configuration of your server headers!
Back to top View user's profile Send private message Visit poster's website
Arcan3
-


Joined: 07 Aug 2009
Posts: 3

PostPosted: Fri Aug 07, 2009 9:52 pm    Post subject: Reply with quote

I in fact used the aprelium precompiled binary...

i tried runing this code...

Code:

<?php
/* Displays details of GD support on your server */

echo '<div style=”margin: 10px;”>';

echo '<p style=”color: #444444; font-size: 130%;”>GD is ';

if (function_exists(”gd_info”)) {

echo '<span style=” font-weight: bold;”>supported</span> by your server!</p>';

$gd = gd_info();
foreach ($gd as $k => $v) {

echo '<div style=”width: 340px; border-bottom: 1px solid #DDDDDD; padding: 2px;”>';
echo '<span style=”float: left;width: 300px;”>’ . $k . ‘</span> ';

if ($v)
echo '<span style=” font-weight: bold;”>Yes</span>';
else
echo '<span style=” font-weight: bold;”>No</span>';

echo '<div style=”clear:both;”><!– –></div></div>';
}

} else {

echo '<span style=” font-weight: bold;”>not supported</span> by your server!</p>';

}

echo '</div>';

?>


(this code window displays one of the chars wrong ... it should be " instead of the lil fat I ... )

and also this...

Code:

<?php // content="text/plain; charset=utf-8"
$im = @imagecreate (200, 100) or die ( "cannot create a new gd image.");
$background_color = imagecolorallocate ($im, 240, 240, 240);
$border_color = imagecolorallocate ($im, 50, 50, 50);
$text_color = imagecolorallocate ($im, 233, 14, 91);
 
imagerectangle($im,0,0,199,99,$border_color);
imagestring ($im, 5, 10, 40, "a simple text string", $text_color );
header ("content-type: image/png");
imagepng ($im);
?>


... first code said gd is not supported by your server...
... second code said
The image "http://localhost/GRAPH/GDTest.php" cannot be displayed, because it contains errors.

i know for a fact the installation is intact since i installed it myself not 2 days ago... and i have done so before.. but I've never played with GD before...

Any ideas?

UPDATE: I tried again with the second code... now it works... i copy/pasted it from a doc (jdgraph)... something isn't right here... first code still wont work...

tried a 3rd that is in the testing document of jdgraph...

3rd worked like a charm also ..
3rd
Code:

<?php // content="text/plain; charset=utf-8"
$im =  imagecreatetruecolor ( 300, 200);
$black = imagecolorallocate ($im,  0, 0, 0);
$lightgray = imagecolorallocate ($im,  230, 230, 230);
$darkgreen = imagecolorallocate ($im,  80, 140, 80);
$white = imagecolorallocate ($im,  255, 255, 255);
 
imagefilledrectangle ($im,0,0,299,199 ,$lightgray);
imagerectangle ($im,0,0,299,199,$black);
imagefilledellipse ($im,150,100,210,110,$white);
imagefilledellipse ($im,150,100,200,100,$darkgreen);
header ("Content-type: image/png");
imagepng ($im);
?>
Back to top View user's profile Send private message
aprelium-support
-


Joined: 20 Feb 2009
Posts: 356

PostPosted: Mon Aug 10, 2009 11:08 am    Post subject: Reply with quote

Could you please try this one (we replace the quotes ” and ‘ by ' ):
Code:

<?php
/* Displays details of GD support on your server */

echo '<div style=”margin: 10px;”>';

echo '<p style=”color: #444444; font-size: 130%;”>GD is ';

if (function_exists('gd_info')) {

echo '<span style=” font-weight: bold;”>supported</span> by your server!</p>';

$gd = gd_info();
foreach ($gd as $k => $v) {

echo '<div style=”width: 340px; border-bottom: 1px solid #DDDDDD; padding: 2px;”>';
echo '<span style=”float: left;width: 300px;”>' . $k . '</span> ';

if ($v)
echo '<span style=” font-weight: bold;”>Yes</span>';
else
echo '<span style=” font-weight: bold;”>No</span>';

echo '<div style=”clear:both;”><!– –></div></div>';
}

} else {

echo '<span style=” font-weight: bold;”>not supported</span> by your server!</p>';

}

echo '</div>';

?>
[quote][/quote]

_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Visit poster's website
Arcan3
-


Joined: 07 Aug 2009
Posts: 3

PostPosted: Thu Aug 13, 2009 1:09 pm    Post subject: Reply with quote

I got everything working already.. i forgot to close this ...

It was weird though... A restart fixed everything...

Thank you anyways for the prompt anwers ...
Back to top View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> PHP All times are GMT + 1 Hour
Page 1 of 1

 
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


Powered by phpBB phpBB Group