This topic has been archived. It cannot be replied.
-
工作学习 / IT技术讨论 / 请教一个关于PHP的菜问题:在使用session_start()时出现“Warning: session_start(): open(/tmp\sess_2adf66e9861e0ccd7cd92d57199e33a9, O_RDWR) failed: No such file or directory (2) in sessions.php on line 68以及Warning: The sessions directory does not exist: /tmp. Sessions will not work until this directory is created.
请问,这是什么原因,怎么解决?多谢!
-polareskimo(Inuit);
2004-5-27
{305}
(#1740787@0)
-
/tmp/, check your PHP.ini file
-canadiantire(水坛轮胎);
2004-5-27
(#1740808@0)
-
I really feel myself a fool now.Thanks. But check which part? session.save_path? It doesn't work.
-polareskimo(Inuit);
2004-5-27
{66}
(#1741542@0)
-
check php.ini. Make sure the path specified by save_path existing. if you use window box, typically "session.save_path = C:\PHP\sessiondata"
-elecskunk(elecskunk);
2004-5-27
(#1741553@0)
-
yes, I've checked. The directory exists (actually it's just the path u said) and I even changed the privilage to writable. But, the error's still same.
-polareskimo(Inuit);
2004-5-27
(#1741581@0)
-
大侠们都睡了?还是我这个问题很烂啊?——本人的确在这方面是菜菜鸟,但是也别都见菜鸟S不救叁。。。
-polareskimo(Inuit);
2004-5-28
(#1741607@0)
-
session.save_path = "c:/temp"
-canadiantire(水坛轮胎);
2004-5-28
(#1741795@0)