web前端 配置問題

1、index.php沒有自動調用

答:在httpd.conf裏面 沒有配置

<IfModule dir_module>
    DirectoryIndex index.html index.htm index.php
</IfModule>

二、寫session_start(); 有的頁面報錯,有的不報錯。session_start(): Cannot start session when headers already sent in

解決方法:https://www.cnblogs.com/baocheng/p/3968491.html

修改php.ini中的session.auto_start = 0 爲 session.auto_start = 1

解決。

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章