是否有一个变量可以限制文件夹中会话对某些文件的可用性?
我有由其他人创建的 PHP 应用程序。每个部分都是一个 php 文件。我想将其扩展为另一个部分,但是每次我为新部分创建 php 文件时,该文件都会显示 session_start 错误:
open(/var/lib/php5/sess_somecode, O_RDWR) 失败:权限被拒绝 (13)
写入会话数据(文件)失败。请确认当前 session.save_path设置正确
该文件包含与另一个页面/部分相同的 php 代码,运行顺利。指向该文件的链接也是正确的,它仍然链接到 http://domain.com 上的文件,这是默认设置,而不是 http://www.domain.com。它的行为就像有一些文件名列表/数组,只允许在 tmp 文件夹中存储会话。当我创建新的列表/数组时,它不在该列表/数组中,因此它显示此警告。就像我无权创建新文件并在其中使用相同的会话。
是否有类似我正在寻找的列表/数组的东西,或者我正在寻找绝对不碍事的东西?
I have PHP application, created by someone else. Each section is one php file. I want to extend it by another section, but each time I create php file for the new section, that file shows an error of session_start:
open(/var/lib/php5/sess_somecode, O_RDWR) failed: Permission denied
(13)Failed to write session data (files). Please verify that the current
setting of session.save_path is correct
The file contains the same php code as another page/section which goes well. Link to that file is correct as well, it still links to file on http://domain.com which is default setting, not http://www.domain.com. It behaves like there is some list/array of names of files which are only allowed to store session in tmp folder. When I create new one it isn't in that list/array, so it shows this warning. Like I don't have permission to create new file and use the same session in it.
Is there something like that list/array I'm looking for, or I'm searching absolutely out of the way?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论