gddetector.class.php

来自「一个用PHP编写的」· PHP 代码 · 共 32 行

PHP
32
字号
<?php			/** 	 * \ingroup Gallery_resizer	 *	 * Implementes the detectGd method which returns true if the GD library	 * is available in this host	 *	 */	class GdDetector 	{		function GdDectector()		{					}				/**		 * Returns true if the GD library is available in this host, or false		 * otherwise.		 *		 * @return true if available or false otherwise		 * @static		 */		function detectGd()		{			// the imagecreate() method has been in GD since PHP 3 so it's			// a safe bet to consider GD available if this function is available			return( function_exists( "imagecreate" ));		}	}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?