ComsenzEXP一鍵安裝php顯示Warning: session_start() [funct
[重要通告]如您遇疑難雜癥,本站支持知識付費業務,掃右邊二維碼加博主微信,可節省您寶貴時間哦!
ComsenzEXP一鍵安裝php顯示Warning: session_start() [function.session-start]: open的解決方式
自己PC沒有配置PHP環境,今天測試PHP程序的時候用的康盛的ComsenzEXP安裝好后,
提示以下錯誤:
Warning: session_start() [function.session-start]: open(..\..\php5\Temp\sess_f177b3c51416619e81e977da6b04dc5e, O_RDWR) failed: No such file or directory (2) in D:\ComsenzEXP\wwwroot\system\library\session.php on line 11Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at D:\ComsenzEXP\wwwroot\index.php:100) in D:\ComsenzEXP\wwwroot\system\library\session.php on line 11Warning: Cannot modify header information - headers already sent by (output started at D:\ComsenzEXP\wwwroot\index.php:100) in D:\ComsenzEXP\wwwroot\index.php on line 173
解決方法如下:
1.我是用ComsenzEXP一鍵安裝php,系統為win8,把php.ini拷貝到c:\windows目錄下,
2.在php.ini中把 session.save_path ="C:\WINDOWS\Temp"改為這個;
3.把session.use_cookies = 0,修改為:session.use_cookies = 1;
4.把output_buffering = off,修改為:output_buffering = on;
5.重起appache,一切顯示正常。
問題未解決?付費解決問題加Q或微信 2589053300 (即Q號又微信號)右上方掃一掃可加博主微信
所寫所說,是心之所感,思之所悟,行之所得;文當無敷衍,落筆求簡潔。 以所舍,求所獲;有所依,方所成!