[英]Codeigniter in PHPStorm
I need to know if any special configuration in the ide PhpStorm to use CodeIgniter .我需要知道 ide PhpStorm 中是否有任何特殊配置来使用 CodeIgniter 。 I'm having problems permission to access session variables and writing temporary files .
我在访问会话变量和写入临时文件的权限方面遇到问题。 The server is XAMPP local for IOS
服务器是 IOS 本地的 XAMPP
Error from comment评论错误
A PHP Error was encountered Severity: Warning Message: Unknown: Failed to write session data (files).
遇到 PHP 错误严重性:警告消息:未知:无法写入会话数据(文件)。 Please verify that the current setting of session.save_path is correct (/Applications/temp/) Filename: Unknown Line Number: 0 Backtrace: A PHP Error was encountered Severity: Warning Message: Unknown: open(/Applications/temp//sess_acelvldc0c60ti1pj13fmil6t6, O_RDWR) failed: Permission denied (13) Filename: Unknown Line Number: 0 Backtrace
请验证 session.save_path 的当前设置是否正确 (/Applications/temp/) 文件名:未知行号:0 回溯:遇到 PHP 错误严重性:警告消息:未知:open(/Applications/temp//sess_acelvldc0c60ti1pj13fmil6t6, O_RDWR) 失败:权限被拒绝 (13) 文件名:未知行号:0 回溯
When you use session files on codeigniter 3当您在 codeigniter 3 上使用会话文件时
Where ever you save your file example:您保存文件示例的位置:
application
application > temp
Then on your config.php然后在你的 config.php
$config['sess_driver'] = 'files';
$config['sess_cookie_name'] = 'ci_session';
$config['sess_expiration'] = 7200;
$config['sess_save_path'] = APPPATH . 'temp/';
$config['sess_match_ip'] = TRUE;
$config['sess_time_to_update'] = 300;
$config['sess_regenerate_destroy'] = FALSE;
Make sure the sess_save_path has /
at end.确保 sess_save_path 在末尾有
/
。
Also make sure you have set temp folder permissions to chmod 0700 You need set permission for your var directory还要确保您已将临时文件夹权限设置为 chmod 0700 您需要为 var 目录设置权限
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.