初来贵地,实在不知道该发到哪个版,版主大人行行好,不要删除我的帖子,请帮助我解决我的疑问,再一次感谢!想配置WINDWOS2003服务器环境,在网上找了很久很久,直至今天晚上才有所突破,所幸全部安装完毕。是在网上搜索到这个帖子安装的:[2009 年最新版]IIS6+PHP5+MySQL5+Zend Optimizer+phpMyAdmin 安装配置教程但,不知道为什么,在测试的时候,总是提示:Error parsing D:\windows\php.ini on line 1104后来,我查了一下1104行,内容是:; Note that all valid entries require a "=", even if no value follow后来我百度GOOGLE了半天,也找不到具体的解决方法,请这里的高人帮忙指点,再一次感谢!

解决方案 »

  1.   

    你的测试页面代码是什么?你可以新建一个test.php里面打 <? phpinfo(); ?> 看看有错误吗?
      

  2.   

    安装了PHPMYADMIN,可是,总是提示内部服务器500错误。
    后来,查了一下原因,提示是:PHP has encountered an Access Violation at 0171746B
    请问这是什么原因造成的?另外,答复

    你的测试页面代码是什么? 
    你可以新建一个test.php里面打 <? phpinfo(); ?> 看看有错误吗?
    ”我的信息反馈如下:PHP Version 5.2.8 System  Windows NT THEXROCK-PALGNH 5.2 build 3790  
    Build Date  Dec 8 2008 19:30:48  
    Configure Command  cscript /nologo configure.js "--enable-snapshot-build" "--enable-debug-pack" "--with-snapshot-template=d:\php-sdk\snap_5_2\vc6\x86\template" "--with-php-build=d:\php-sdk\snap_5_2\vc6\x86\php_build" "--with-pdo-oci=D:\php-sdk\oracle\instantclient10\sdk,shared" "--with-oci8=D:\php-sdk\oracle\instantclient10\sdk,shared"  
    Server API  ISAPI  
    Virtual Directory Support  enabled  
    Configuration File (php.ini) Path  K:\WINDOWS  
    Loaded Configuration File  K:\WINDOWS\php.ini  
    Scan this dir for additional .ini files  (none)  
    additional .ini files parsed  (none)  
    PHP API  20041225  
    PHP Extension  20060613  
    Zend Extension  220060519  
    Debug Build  no  
    Thread Safety  enabled  
    Zend Memory Manager  enabled  
    IPv6 Support  enabled  
    Registered PHP Streams  php, file, data, http, ftp, compress.zlib, zip  
    Registered Stream Socket Transports  tcp, udp  
    Registered Stream Filters  convert.iconv.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, zlib.*   This program makes use of the Zend Scripting Language Engine:
    Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies
     
      

  3.   

    补充一个细节问题:在安装PHP168V6.02最新整站程序时,仍然出错:
    Warning: touch() [function.touch]: Utime failed: Permission denied in K:\Inetpub\wwwroot\xhistory\install.php on line 559Warning: fopen(K:\Inetpub\wwwroot\xhistory/php168/admin.php) [function.fopen]: failed to open stream: Permission denied in K:\Inetpub\wwwroot\xhistory\install.php on line 560Warning: flock() expects parameter 1 to be resource, boolean given in K:\Inetpub\wwwroot\xhistory\install.php on line 562Warning: fputs(): supplied argument is not a valid stream resource in K:\Inetpub\wwwroot\xhistory\install.php on line 564Warning: ftruncate(): supplied argument is not a valid stream resource in K:\Inetpub\wwwroot\xhistory\install.php on line 565Warning: fclose(): supplied argument is not a valid stream resource in K:\Inetpub\wwwroot\xhistory\install.php on line 566Warning: touch() [function.touch]: Utime failed: Permission denied in K:\Inetpub\wwwroot\xhistory\install.php on line 559Warning: fopen(K:\Inetpub\wwwroot\xhistory/php168/config.php) [function.fopen]: failed to open stream: Permission denied in K:\Inetpub\wwwroot\xhistory\install.php on line 560Warning: flock() expects parameter 1 to be resource, boolean given in K:\Inetpub\wwwroot\xhistory\install.php on line 562Warning: fputs(): supplied argument is not a valid stream resource in K:\Inetpub\wwwroot\xhistory\install.php on line 564Warning: ftruncate(): supplied argument is not a valid stream resource in K:\Inetpub\wwwroot\xhistory\install.php on line 565Warning: fclose(): supplied argument is not a valid stream resource in K:\Inetpub\wwwroot\xhistory\install.php on line 566Warning: touch() [function.touch]: Utime failed: Permission denied in K:\Inetpub\wwwroot\xhistory\install.php on line 559Warning: fopen(K:\Inetpub\wwwroot\xhistory/php168/ad_cache.php) [function.fopen]: failed to open stream: Permission denied in K:\Inetpub\wwwroot\xhistory\install.php on line 560Warning: flock() expects parameter 1 to be resource, boolean given in K:\Inetpub\wwwroot\xhistory\install.php on line 562Warning: fputs(): supplied argument is not a valid stream resource in K:\Inetpub\wwwroot\xhistory\install.php on line 564Warning: ftruncate(): supplied argument is not a valid stream resource in K:\Inetpub\wwwroot\xhistory\install.php on line 565Warning: fclose(): supplied argument is not a valid stream resource in K:\Inetpub\wwwroot\xhistory\install.php on line 566Warning: touch() [function.touch]: Utime failed: Permission denied in K:\Inetpub\wwwroot\xhistory\install.php on line 559Warning: fopen(K:\Inetpub\wwwroot\xhistory/php168/friendlink.php) [function.fopen]: failed to open stream: Permission denied in K:\Inetpub\wwwroot\xhistory\install.php on line 560Warning: flock() expects parameter 1 to be resource, boolean given in K:\Inetpub\wwwroot\xhistory\install.php on line 562Warning: fputs(): supplied argument is not a valid stream resource in K:\Inetpub\wwwroot\xhistory\install.php on line 564Warning: ftruncate(): supplied argument is not a valid stream resource in K:\Inetpub\wwwroot\xhistory\install.php on line 565Warning: fclose(): supplied argument is not a valid stream resource in K:\Inetpub\wwwroot\xhistory\install.php on line 566
      

  4.   

    从以上情况看来, 是php环境没完全安装成功, 建议重新安装,或修正一下
      

  5.   

    答复:
    “查前一行数据。”第1104行是如下内容:
    ; Note that all valid entries require a "=", even if no value follows.1104行前后行的内容如下:
    ; The URL rewriter will look for URLs in a defined set of HTML tags.
    ; form/fieldset are special; if you include them here, the rewriter will
    ; add a hidden <input> field with the info which is otherwise appended
    ; to URLs.  If you want XHTML conformity, remove the form entry.
    ; Note that all valid entries require a "=", even if no value follows.
    url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=,fieldset="
      

  6.   

    php.ini  php5里面默认的覆盖。再重新开扩展吧。。
      

  7.   

    弄个新的,然后把ini文件覆盖掉
      

  8.   

    我是根据这个教程做的,难道这个教程有误?我细想了一下操作的全部过程,除了程序目录安装、ZendOptimizer-3.3.3-Windows-i386.exe安装这两项上把我搞糊涂过外,其它的地方倒还算清醒,只是用源PHP.INI覆盖后,不一样要重复全部安装过程吗?我感觉那一样还会有问题的啊。
      

  9.   

    晕,CSDN论坛太经典了,不光我每次发帖求问要重新登陆一次,连我输入的网址也直接给我T掉了。我是根据这个教程做的:2009年最新最兼容最安全的PHP环境安装教程   是在百度的“百度文库 >  教学资料 ”里。
      

  10.   

    我这机上没IIS环境, 不能测试, 很难帮你检查出具体原因 
      

  11.   

    用 php.ini-dist 重新制作 php.ini
      

  12.   

    ZendOptimizer-3.3.3-Windows-i386.exe\mysql\PHPMYADMIN等还需要重新安装吗?
      

  13.   

    你的php.ini好像修改过, 看下我php.ini第1156行, 显示和你的不同, 而且是不是你的php.ini还少了点什么, 重新弄一个php.ini覆盖后, 看看有报错没 ?; The URL rewriter will look for URLs in a defined set of HTML tags.
    ; form/fieldset are special; if you include them here, the rewriter will
    ; add a hidden <input> field with the info which is otherwise appended
    ; to URLs.  If you want XHTML conformity, remove the form entry.
    ; Note that all valid entries require a "=", even if no value follows.
    url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry"