search

Home  >  Q&A  >  body text

Who can help me solve this problem?

Apache HTTP Server.jpg

YiiYii2631 days ago1355

reply all(3)I'll reply

  • 屠名科

    屠名科2017-10-30 09:39:35

    Your foreach loops an empty array, and then takes the key name. Of course, an error will be reported. Don’t give you an empty array

    reply
    0
  • 按键盘手指磨破皮

    按键盘手指磨破皮2017-10-28 14:28:48

    I have also encountered similar problems, but as a novice, it is difficult to find the cause. The easiest way is to reinstall Apache.

    reply
    0
  • Yii

    is in the program $_data=array(); foreach($data as $k=>$v){ $_data=>$k; } I wrote the code in foreach() wrong.

    Yii · 2017-10-29 12:33:14
  • Day

    Day2017-10-28 11:39:55

    Look at the log error log file in Apache. There are many reasons for crashes. Most of them are caused by your own code problems. In that case, you should optimize your code as much as possible. This will also happen if the website is attacked by hackers. For such problems, it is recommended to check Apache's error logs yourself and learn to analyze them yourself. If you really can't solve it, you can only restart Apache.

    reply
    0
  • Cancelreply