mavera2 Posted January 5, 2012 Share Posted January 5, 2012 I'm a beginner. I should debug my code from the webserver. When i use arrays and get some error, i generally make "var_dump" or "print_r" to check my data contents. Most of the time, by echo'ing, i can get the errors with related to structure of arrays etc. But when dumped file is too big, webserver crashes. I use shared hosting, so it becomes problem. For example $html = file_get_html( 'http://www.example.com' ); var_dump($html); I suppose, PHP runs it very long and reserved memory, RAM etc. becomes exhausted. To solve this i sometime write the outputs to txt files. But it would be handy to check the results from browser. What can you recommend me to not to crash server? Thank you Quote Link to comment https://forums.phpfreaks.com/topic/254440-crashing-while-debugging-the-code/ Share on other sites More sharing options...
Pikachu2000 Posted January 5, 2012 Share Posted January 5, 2012 file_get_html() isn't a native php function. To even begin to figure out what the problem is, you'd need to post the code for it. Quote Link to comment https://forums.phpfreaks.com/topic/254440-crashing-while-debugging-the-code/#findComment-1304644 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.