PHP site keeps opening to blank page, no errors

前端 未结 4 782
天命终不由人
天命终不由人 2021-01-22 19:42

First, the premises: PHP loaded on IIS6 on Win2003 STD R2 SP2, PHP_5213 using FastCGI, MySQL_5145.

Customer sent me the site files, which I unzipped to C:\\InetPub

4条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-22 20:29

    When moving files from one server to another and getting the blank page, check whether the code is using short opening php tags like instead of the full opening tag. If it is and the original server has the following line in the php.ini file...

    short_open_tag = On
    

    but the new server has...

    short_open_tag = Off
    

    then the blank screen may be the result.

提交回复
热议问题