好的,所以,在我的页面上,每当我尝试启动会话时,都会收到这些错误。PHP session_start()错误
Warning: session_start() [function.session-start]: open(/var/chroot/home/content/*/*/*/***/tmp/(SESSIONID - Edited out), O_RDWR) failed: No such file or directory (2) in /home/content/*/*/*/*****/html/*******/index.php on line 3
{Page Name}
{Short 3 Word Description}
Warning: Unknown: open(/var/chroot/home/content/*/*/*/***/tmp/(SESSIONID - Edited out), O_RDWR) failed: No such file or directory (2) in Unknown on line 0
Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct() in Unknown on line 0
我正在使用PHP。这里是我的代码:
<?
ob_start();
session_start();
require('****.php');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Title - edited</title>
</head>
<body>
<div id="top">
<h1>title</h1>
<h3>edited</h3>
</div>
</body>
它不惊人的代码,但它是我做了什么。请帮助,并感谢先进。如果这有所作为,我将与Godaddy共享主机。
您能否给我们提供完整的完整的错误信息,而不是编辑出来?你可以离开你的域名,但知道路径的其余部分将会非常有用。它看起来像你的虚拟主机提供商正在使用['session.save_path']的高级形式(http://www.php.net/manual/en/session.configuration.php#ini.session.save-path)设置,但尚未创建保存会话所需的目录结构。如果没有完整的错误措辞,我们无法确定。 – Charles 2012-02-15 02:10:43
@Charles我不同意我们不能确定没有完整的措辞。 “请确认session.save_path的当前设置是否正确”似乎就是这么说的。 – Shea 2012-02-15 02:30:23