在运行 LAMP 堆栈和 PHP 的共享主机包上,没有 shell 访问权限,PHP 处于安全模式(= exec()
被禁用),只有 FTP 访问权限,我有机会吗以某种方式创建符号链接(symbolic link)?
我刚刚检查过,我什至无法使用插入执行 ln
命令的 cron 作业的偷偷摸摸的解决方法。
最佳答案
使用内置 symlink功能。以下限制适用于安全模式:
Checks whether the files or directories being operated upon have the same UID (owner) as the script that is being executed. Checks whether the directory in which the script is operating has the same UID (owner) as the script that is being executed. (note: only the target is checked)
(引自php.net)
关于php - 在安全模式下创建没有 shell 访问权限的符号链接(symbolic link)?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2217997/