Jump to content
php.lv forumi

gd piesaistishana


tiy

Recommended Posts

Nesanak iedarbinat gd biblioteku, man php pasha sakuma gd vispar nebija, es novilku no dc pashu jaunako

, tad iemetu extensions folderi, ieksh php ini shita uzrakstiju ,

 

extension_dir= C:/Program Files/php/extensions/php_gd2.dll

 

ja bez _dir met ara erroru neatrod, bet

 

extension_dir= C:/Program Files/php/extensions/php_gd2.dll gadijuma nerada kludu , neko ierakstu gd_info() izsaukta nenodefineta f-ja. kas var but. php man standarta no php saita 5> ???

 

un vel ierakstot phpinfo(); pie addtional modules ir tuksh ???, es ta saprotu tas pie ta neattiecas.

Edited by tiy
Link to comment
Share on other sites

extension_dir= "C:/Program Files/php/extensions" vai shita extension_dir= "C:\Program Files\php\extensions"

extension=php_gd2.dll

 

, sak mest ara Starup:unable to load...

Edited by tiy
Link to comment
Share on other sites

Nu, tad vai nu pietrūkst vēl kāda extensiona, lai šis strādātu, vai versiju konflikts. Ietektu paņemt normālu php win binary, kurā jau ir gd (tik ne win installeri). Un tad tik atkomentēt atbilstošo extensionu. Vairs īsti neatceros, tak laikam nekādu trablu ar gd palaišanu nebij

 

p.s. a ceļš ta tev ir pareizs uz to php_gd2.dll? t.b. ir viņš iekš C:/Program Files/php/extensions?

Edited by john.brown
Link to comment
Share on other sites

Kur var but kluda , jo uz attla servera neiet, bet man pasham iet ?

Tur gd ir pieslekta, bilde , fonti ir, ja imagettftext($im,10,0,83,14,$lime,$font,$a); aizkomnte tad parada bildi.

 

<?php

 

function img($a)

{

 

header("Content-type: image/png");

$im = imagecreatefrompng("/bilde.png");

$lime=imagecolorallocate($im,0,255,0);

$font="georgia.ttf";

imagettftext($im,10,0,83,14,$lime,$font,$a);

 

 

return imagepng($im);

}

 

 

img(10);

 

// bet man rada sho

The image “http://fullpath.php” cannot be displayed, because it contains errors.

?>

Link to comment
Share on other sites

<?php
error_reporting(E_ALL); 

header("Content-type: image/png");	
$im	= imagecreatefrompng("bilde.png");
$lime=imagecolorallocate($im,0,255,0);
$font="georgia.ttf";
imagefttext($im,10,0,83,14,$lime,$font,"aaa"); 
imagepng($im);

//rada to pashu rindu neko vairak ?
?>

Link to comment
Share on other sites

×
×
  • Create New...