把php\dlls目录下的内容复制到系统目录下

解决方案 »

  1.   

    to: xuzuning(唠叨) ( ) 信誉:477 那個問題解決了, 
    但是還是不出來, 圖象顯示亂嗎。
    我用的是繁體
      

  2.   

    http://xinghe.sowee.com/img.php<?php
    header ("Content-type: image/png; charset=big5");
    $im = @imagecreate (100, 300)
        or die ("Cannot Initialize new GD image stream");
    $background_color = imagecolorallocate ($im, 255, 255, 255);
    $text_color = imagecolorallocate ($im, 233, 14, 91);
    print("&sup3;o&cedil;&Igrave;&iquest;é&yen;X&Aacute;c&Aring;é&ordm;~&brvbar;r");
    imagestring ($im, 1, 5, 5,  "&sup3;o&cedil;&Igrave;&iquest;é&yen;X&Aacute;c&Aring;é&ordm;~&brvbar;r", $text_color);
    print("This print english");
    imagestring ($im, 1, 5, 5,  "This print english", $text_color);
    imagepng ($im);
    ?>
      

  3.   

    <?php
    header ("Content-type: image/png; charset=big5");
    $im = @imagecreate (100, 300)
        or die ("Cannot Initialize new GD image stream");
    $background_color = imagecolorallocate ($im, 255, 255, 255);
    $text_color = imagecolorallocate ($im, 233, 14, 91);
    print("這裡輸出繁體漢字");
    imagestring ($im, 1, 5, 5,  "這裡輸出繁體漢字", $text_color);
    print("This print english");
    imagestring ($im, 1, 5, 5,  "This print english", $text_color);
    imagepng ($im);
    ?>
      

  4.   

    http://linuxsoft.myrice.com/linuxclub/linuxbc/gd.htm
      

  5.   

    http://expert.csdn.net/Expert/topic/2063/2063514.xml?temp=.8493006不使用iconv()
    http://expert.csdn.net/Expert/FAQ/FAQ_Index.asp?id=97062使用iconv()
    Header("Content-type: image/PNG"); 
    $im = imagecreate(300,50); 
    $bkg = ImageColorAllocate($im, 128,64,225); 
    $clr = ImageColorAllocate($im, 255,255,255); 
    $fnt = "c:/windows/fonts/simfang.ttf";$str = iconv("GB2312","UTF-8","欢迎光临"); ImageTTFText($im, 20, 0, 30,40, $clr, $fnt, $str); 
    ImagePNG($im); 
    ImageDestroy($im);