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
解决。