gpt4 book ai didi

php - 某些 PHP 函数在映射的网络驱动器上无法正常工作

转载 作者:行者123 更新时间:2023-12-04 18:30:53 25 4
gpt4 key购买 nike

我通过添加命令在 Ubuntu 上安装了网络驱动器(运行 Windows Server 2008)

//10.10.101.54/docflow /opt/lampp/htdocs/mount cifs user=administrator,password=wbaZaja43ik,rwx,user,auto,file_mode=6777,dir_mode=6777,uid=1000,gid=1000

/etc/fstab但是在使用 PHP 函数时遇到问题 is_file()is_dir()在该映射驱动器上的文件和目录上。这些函数在对现有文件或目录调用时都返回 FALSE - file_exists() 检查正确的路径正常工作的功能。 PHP 在“管理员”用户下运行,并拥有操作所需的所有权限。

知道如何解决这个问题吗?

谢谢!

最佳答案

在 gmail dot com 的 comments 上引用 digitalaudiorock在php手册中:

Just a note for anyone who encounters is_dir() returning false on CIFS mount points or directories within those mount points on 2.6.31 and newer kernels: Apparently in new kernels they've started using the CIFS serverino option by default. With Windows shares this causes huge inode numbers and which apparently can cause is_dir() to return false. Adding the noserverino option to the CIFS mount will prevent this. This may only occur on 32 systems but I don't have a 64 bit install to test against.

关于php - 某些 PHP 函数在映射的网络驱动器上无法正常工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10440920/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com