ComsenzEXP一鍵安裝php顯示W(wǎng)arning: session_start() [funct
[重要通告]如您遇疑難雜癥,本站支持知識(shí)付費(fèi)業(yè)務(wù),掃右邊二維碼加博主微信,可節(jié)省您寶貴時(shí)間哦!
ComsenzEXP一鍵安裝php顯示W(wǎng)arning: session_start() [function.session-start]: open的解決方式
自己PC沒(méi)有配置PHP環(huán)境,今天測(cè)試PHP程序的時(shí)候用的康盛的ComsenzEXP安裝好后,
提示以下錯(cuò)誤:
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,系統(tǒng)為win8,把php.ini拷貝到c:\windows目錄下,
2.在php.ini中把 session.save_path ="C:\WINDOWS\Temp"改為這個(gè);
3.把session.use_cookies = 0,修改為:session.use_cookies = 1;
4.把output_buffering = off,修改為:output_buffering = on;
5.重起appache,一切顯示正常。
問(wèn)題未解決?付費(fèi)解決問(wèn)題加Q或微信 2589053300 (即Q號(hào)又微信號(hào))右上方掃一掃可加博主微信
所寫所說(shuō),是心之所感,思之所悟,行之所得;文當(dāng)無(wú)敷衍,落筆求簡(jiǎn)潔。 以所舍,求所獲;有所依,方所成!