I am using simple HTML domain . I am trying to run the following : (With WAMP) If I answer the foreach loop, then it's going fine. Otherwise, Apache Accidents. An important note: If I comment inside the foreach loop, it still crashes. I've added var dump to make sure that the array has valid items. Edit: Apache log: [Tue Jul 10 16:53 53:53 2012] [Notices] Parents: Child Process 255 Exit Status - Restart [Tue Jul 10 16:53:53 2012] [Notice] Apache / 2.2.22 (Win64) Configure PHP / 5.3.13 - Normal Operation Start [Wed Jul 10 16:53:53 2012] [Notices] Built-in Server: [Information ] Child 5568: Child Process is Running [Wed Jul 10 16:53:53 2012] [Notice] Child 5568: Start Mute X Acquisition [Tue Jul 10 16:53:53 2012] [Notice] Child 5568: 64 Worker Threads Getting Started [Tue Jul 10 16:53:53 2012] [Note SIS] Hair 5568: Start the thread to listen to port 80. [Wed Jul 10 16:53:53 2012] [Information] Hair 5568: Start the thread to listen on port 80. This memory leak may occur: After from here: / html >
$ doc = file_get_html ('http://www.scoop.it/t/curate-your-personal-learning-environment?page=3'); $ Comments = array (); $ CommentList = $ doc- & gt; Search ('# Comment List Div [class = commentContainer]'); If (calculation ($ comment list)> 0) var_dump ($ CommentList); Foreign exchange ($ comment $ comment list as comment) {$ text = $ comment-> search ('span [class ^ = writer]'); $ Comments [] = $ this :: ctrim ($ text [0] -> internal text); }
Your Apache says:
Comments
Post a Comment