Solution for “Fatal error: Maximum function nesting level of '100' reached, aborting!” in PHP

后端 未结 22 2508
我寻月下人不归
我寻月下人不归 2020-11-22 16:45

I have made a function that finds all the URLs within an html file and repeats the same process for each html content linked to the discovered URLs. The function is recursiv

22条回答
  •  北荒
    北荒 (楼主)
    2020-11-22 17:12

    Another solution if you are running php script in CLI(cmd)

    The php.ini file that needs edit is different in this case. In my WAMP installation the php.ini file that is loaded in command line is:

    \wamp\bin\php\php5.5.12\php.ini
    

    instead of \wamp\bin\apache\apache2.4.9\bin\php.ini which loads when php is run from browser

提交回复
热议问题