extension_dir = ./
這個地方為什么要改呢?不需要吧

解决方案 »

  1.   


    不需要指明路径吗??  extension_dir = e:\php\extensions
      

  2.   

    我又是了一遍,那个路径改不改都行。看来是别的原因,请高手告知,谢谢。即怎样配置 win2000+php+apache ,怎样让他们可以显示.gif 谢谢大家。
      

  3.   

    ;extension=php_gd.dll
    去掉前面的;这个符号了。
      

  4.   

    还有,你要拷贝phpts4.dll到system32目录才行的。
      

  5.   

    已经复制php4ts.dll到c:\winnt\system32
    而且;extension=php_gd.dll 去掉;也不行。
      

  6.   

    extension_dir = e:\php\extensions  
    改成这样呢extension_dir = "e:\php\extensions ".
    还有 ;extension=php_gd.dll 这行你不要改呀。你要的是gif支持的吧。
      

  7.   

    感谢zhongshan99(徐子陵:狂人) 的回复。
    都没有作用,再帮帮忙吧,我想是不是我应该装一个PHP的安装版。
    我在描述一下问题:这是什么问题,刚装好Apache1.3.19 和 php4.0.6是这样配置php的,将 php.ini-dist 改名成 php.ini ,以下是改动的内容:;;;;;;;;;;;;;;;;;;;;;;;;;
    ; Paths and Directories ;
    ;;;;;;;;;;;;;;;;;;;;;;;;;; UNIX: "/path1:/path2"  
    ;include_path = ".:/php/includes"
    ;
    ; Windows: "\path1;\path2"
    ;include_path = ".;c:\php\includes"; The root of the PHP pages, used only if nonempty.
    doc_root =; The directory under which PHP opens the script using /~usernamem used only
    ; if nonempty.
    user_dir =; Directory in which the loadable extensions (modules) reside.
    extension_dir = e:\php\extensions  ;改动后的; Whether or not to enable the dl() function.  The dl() function does NOT work
    ; properly in multithreaded servers, such as IIS or Zeus, and is automatically
    ; disabled on them.
    enable_dl = On
    ;;;;;;;;;;;;;;;;;;;;;;
    ; Dynamic Extensions ;
    ;;;;;;;;;;;;;;;;;;;;;;
    ;
    ; If you wish to have an extension loaded automaticly, use the following
    ; syntax:
    ;
    ;  extension=modulename.extension
    ;
    ; For example, on Windows:
    ;
    ;  extension=msql.dll
    ;
    ; ... or under UNIX:
    ;
    ;  extension=msql.so
    ;
    ; Note that it should be the name of the module only; no directory information 
    ; needs to go here.  Specify the location of the extension with the
    ; extension_dir directive above.
    ;Windows Extensions
    ;Note that MySQL and ODBC support is now built in, so no dll is needed for it.extension=php_gd_gif.dll  ;改动后的
    ;extension=php_bz2.dll
    ;extension=php_ctype.dll
    ;extension=php_cpdf.dll
    ;extension=php_curl.dll
    ;extension=php_cybercash.dll
    ;extension=php_db.dll
    ;extension=php_dba.dll
    ;extension=php_dbase.dll
    ;extension=php_dbx.dll
    ;extension=php_domxml.dll
    ;extension=php_dotnet.dll
    ;extension=php_exif.dll
    ;extension=php_fdf.dll
    ;extension=php_filepro.dll
    ;extension=php_gd.dll
    ;extension=php_gettext.dll
    ;extension=php_hyperwave.dll
    ;extension=php_iconv.dll
    ;extension=php_ifx.dll
    ;extension=php_iisfunc.dll
    ;extension=php_imap.dll
    ;extension=php_ingres.dll
    ;extension=php_interbase.dll
    ;extension=php_java.dll
    ;extension=php_ldap.dll
    ;extension=php_mcrypt.dll
    ;extension=php_mhash.dll
    ;extension=php_ming.dll
    ;extension=php_mssql.dll
    ;extension=php_oci8.dll
    ;extension=php_openssl.dll
    ;extension=php_oracle.dll
    ;extension=php_pdf.dll
    ;extension=php_pgsql.dll
    ;extension=php_printer.dll
    ;extension=php_sablot.dll
    ;extension=php_snmp.dll
    ;extension=php_sybase_ct.dll
    ;extension=php_yaz.dll
    ;extension=php_zlib.dll保存,退出。复制php.ini到c:\winnt
    复制php4ts.dll到c:\winnt\system32
    运行Apache,成功。浏览器输入 127.0.0.1/liyan.php 出现两个对话框:php.exe-Entry Point Not FoundThe procedure entry point add_assoc_long could not be located in the dynamic link library php4ts.dll
    Warning Unable to load dynamic library 'e:\php\extensions/php_gd_gif.dll'-The specified procedure could not be found.同时页面左上角出现:
    X-Powered-By: PHP/4.0.6 Content-type: text/html可是我的php_gd_gif.dll(404KB)确实在那个目录里呀。尔后,gif图片无法显示。这是什么问题,如何解决?谢谢。
      

  8.   

    看来是php_gd_gif.dll的问题,我的文件大小是404k,不知道有没有它的下载?? 
      

  9.   

    apache的文件修改了吧?因为对gif的支持是旧版本的,可能在最新的php4.0.6中不能使用,你可以去下载php3.x,然后使用看看有没有这个问题了。