应该是chmod("wry.dll",o777),而不是chmod("wry.dll", 0777 )。
因为文件属性值是八进制,而不是十进制。最前面那个是字母o,而不是数字0。
这点在星空浪子翻译的PHP中文手册中都错了。还有,没必要每次都改变wry.dll的属性值吧,去掉这句算了。

解决方案 »

  1.   

    If you use the octal notation, you must precede the number with a 0 (zero), to use hexadecimal notation precede the number with 0x. Example 6-1. Integer literals$a = 1234; # decimal number
    $a = -123; # a negative number
    $a = 0123; # octal number (equivalent to 83 decimal)
    $a = 0x1A; # hexadecimal number (equivalent to 26 decimal)
     
     
      

  2.   

    将wry.dll这个文件名改一下吧,改成别的如:ip.data
      

  3.   

    chmod("wry.dll",o777)
    其他没什么好说的了……
    也可以把这一句去掉
      

  4.   

    更正一下,应该用chmod("wry.dll", 0777).刚刚查了PHP手册,发现自己错了:)