tiy Posted July 11, 2006 Report Share Posted July 11, 2006 (edited) 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 July 11, 2006 by tiy Link to comment Share on other sites More sharing options...
john.brown Posted July 11, 2006 Report Share Posted July 11, 2006 extension_dir= "C:/Program Files/php/extensions" un pie extensions extension=php_gd2.dll Link to comment Share on other sites More sharing options...
tiy Posted July 11, 2006 Author Report Share Posted July 11, 2006 (edited) 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 July 11, 2006 by tiy Link to comment Share on other sites More sharing options...
john.brown Posted July 11, 2006 Report Share Posted July 11, 2006 (edited) 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 July 11, 2006 by john.brown Link to comment Share on other sites More sharing options...
tiy Posted July 11, 2006 Author Report Share Posted July 11, 2006 pateicos john.brown, uzliku jaunako binary un aizgaja , super Link to comment Share on other sites More sharing options...
tiy Posted July 12, 2006 Author Report Share Posted July 12, 2006 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 More sharing options...
bubu Posted July 12, 2006 Report Share Posted July 12, 2006 error_reporting(E_ALL); uzliec faila sākumā Link to comment Share on other sites More sharing options...
tiy Posted July 12, 2006 Author Report Share Posted July 12, 2006 <?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 More sharing options...
Delfins Posted July 12, 2006 Report Share Posted July 12, 2006 Nu takš skaties savu kodu... "/bilde.png" būs līdzvertīgs C:/bilde.png .... kas diez vai tāds fails pastāv Link to comment Share on other sites More sharing options...
tiy Posted July 12, 2006 Author Report Share Posted July 12, 2006 $im = imagecreatefrompng("bilde.png"); vai $im = imagecreatefrompng("/bilde.png"); meginaju ar abiem negaja? ps. rectangle varu uzzimet Link to comment Share on other sites More sharing options...
bubu Posted July 12, 2006 Report Share Posted July 12, 2006 Kad lapa ielādējas uzspied view source savam pārlūkam. Link to comment Share on other sites More sharing options...
tiy Posted July 12, 2006 Author Report Share Posted July 12, 2006 (edited) Izmeta fatalo : Call to undefined function imageTTFtext(), ko darit, lai tekstu varetu tad izvadit? un uz shito tas pats : imageFTTtext() Edited July 12, 2006 by tiy Link to comment Share on other sites More sharing options...
bubu Posted July 12, 2006 Report Share Posted July 12, 2006 Šķir vaļā un lasi: http://lv.php.net/imageTTFtext This function requires both the GD library and the FreeType library. Paņem ar phpinfo() apskaties, vai tev ir. Link to comment Share on other sites More sharing options...
tiy Posted July 12, 2006 Author Report Share Posted July 12, 2006 (edited) tad kapec man majas iet, neesmu licis nekadu FreeType library. pie info vieniga rinda bija free typ dir /usr/include/freetype2/ Edited July 12, 2006 by tiy Link to comment Share on other sites More sharing options...
bubu Posted July 12, 2006 Report Share Posted July 12, 2006 Tāpēc, ka windows php variantam viss sakompilēts kopā un līdzi nāk visas bibliotēkas. Link to comment Share on other sites More sharing options...
Recommended Posts