Home > Backend Development > PHP Tutorial > php+apache实施if语句告警

php+apache实施if语句告警

WBOY
Release: 2016-06-13 12:57:45
Original
931 people have browsed it

php+apache执行if语句告警
      if(strstr($a,"add"))   //如果字符串中存在"add"字符
       {
       $bb.=$k." ".$a;       //$b取$a
       }
       if(strstr($a,"return")||strstr("data"))  //如果字符串中有"return"或"data"字符******apache的error.log一直提示这里错误
       {
     break;  
       }
        elseif(!strstr($a,"return"))   //如果字符串中没有"return"
       {
     //执行后面语句。
告警提示如下:
Dec 16 20:42:33 2012] [error] [client 127.0.0.1] PHP Warning:  strstr() expects at least 2 parameters, 1 given in C:\\Program Files\\www\\fail\\collectdata.php on line 33
是不是我的判断语句错了。。。。貌似也可以执行下去,但告警提示不断,关闭php.ini中error_report也不能避免apache中error.log不断增大,很是头疼,本人菜鸟,坐等大神赐教。


------解决方案--------------------
 if(strstr($a,"return")
------解决方案--------------------
strstr($a"data")) 

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template