Home > php教程 > php手册 > php extension_loaded 判断GD扩展库是否加载

php extension_loaded 判断GD扩展库是否加载

WBOY
Release: 2016-06-02 09:14:09
Original
1218 people have browsed it

<?php
if(!extension_loaded(&#39;gd&#39;)) 
{ 
  //如果没有加载,执行加载操作 
  if(!dl(&#39;gd.so&#39;)) 
  { 
    //如果加载失败,则结束所有操作 
    echo "gd库加载失败"; 
    exit;//开源代码phprm.com 
  } 
}
Copy after login


教程链接:

随意转载~但请保留教程地址★

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template