PHPLIB模板较麻烦啊,,,大家论一下模板吧,
我有一个模板文件,,里面有N个模板变量,,这N个模板变量的内容全部要数据库查询输出,,
这意味着每个模板变量都是一个<!-- BEGIN row0 -->,<!-- BEGIN row1 -->,,,
需要内循环动态输出的区块,,,,,我调试了几次都没达到这个功能,,模板文件被替换输出了几次,先是输出替换了row0里的内容,然后是row1,,,,晕倒啊大家帮帮想想办法啊!!!!!!!
常见问题解答 出错信息 Security Alert! The PHP CGI cannot be accessed directly. This PHP CGI binary was compiled with force-cgi-redirect enabled. This means that a page will only be served up if the REDIRECT_STATUS CGI variable is set, e.g. via an Apache Action directive
处理方法 将PHP安装为IIS的CGI方式就会出现的错误,修改php.ini中 cgi.force_redirect=0
出错信息
Server Application Error
The server has encountered an error while loading an application during the processing of your
request. Please refer to the event log for more detail information. Please contact the server
administrator for assistance.
处理方法 此错误就是将PHP安装为IIS的ISAPI方式就会出现的错误。
解决方法:同上,修改php.ini将cgi.force_redirect设为0,然后重起IIS
出错信息
Warning: Cannot send session cache limiter - headers already sent (output started at C:\crm\member\default.php:4) in
...
出错原因 header函数前有输出,包括空行空格
setcookit函数类似
出错信息 Warning: Cannot send session cookie - headers already sent by (output started at ...