可以采用动态装载gd来实现,把下面的程序段放到你的程序中用到gd的页面的开头就可以了if (!extension_loaded('gd')) {
if (!dl('php_gd2.dll')) {
echo "cannot load the gd_extensions! please contact the manager"
exit;
}
}
if (!dl('php_gd2.dll')) {
echo "cannot load the gd_extensions! please contact the manager"
exit;
}
}
现在好象有部分服务商为了安全计,根本没放GD库