guyuehhh 发表于 2018-12-24 08:09:53

php5

  GD是linux中功能非常强大的图像生产模块,一般配合php语言使用。在debian或ubuntu下面安装方法:apt-get install php5-gd 即可
  如果安装成功,可以通过建立testphp.php测试页来检查是否正常:
  vim testphp.php
  phpinfo();
  ?>
  保存退出,后通过浏览器运行它看到如下信息:
   http://netren.org/administrator/index.php?=PHPE9568F34-D428-11d2-A769-00AA001ACF42PHP Version 5.3.2-1ubuntu4.5

SystemLinux netren 2.6.32-24-generic-pae #43-Ubuntu SMP Thu Sep 16 15:30:27 UTC 2010 i686Build DateSep 17 2010 13:32:04Server APIApache 2.0 HandlerVirtual Directory SupportdisabledConfiguration File (php.ini) Path  /etc/php5/apache2
........省略
gd
  GD SupportenabledGD Version2.0FreeType SupportenabledFreeType Linkagewith freetypeFreeType Version2.3.11T1Lib SupportenabledGIF Read SupportenabledGIF Create SupportenabledJPEG SupportenabledlibJPEG Version6bPNG SupportenabledlibPNG Version1.2.42WBMP Support  enabled

  即为安装正常。
  同样可以建立一个小的测试文件来显示它生成图片的效果,如testpic.php
  vim testpic.php
  
  保存退出,并通过浏览器查看。即可看到:
http://netren.org/images/stories/cc.gif
  >>>阅读全文



页: [1]
查看完整版本: php5