I was using PHP Simple HTML dom, a great and free library for parsing html pages and retreiving info from it. I really liked it.. But when it comes to parsing many differents pages of some website in one php script, you will get an error:
Allowed memory size of 67108864 bytes exhausted,
and this is because simple HTML dom don't free up the memory in real time, so the solution is:
Each time you create a dom object ( foe exemple using: $html = file_get_html("http://someurl/"); or str_get_html... ), then when you don't need it anymore you have to call _destruct:
$html->_destruct();
unset($html);
thanks so much for posting this!
ReplyDeletebut there is a type. it should be __destruct, not _destruct.
Thanks a lot!
ReplyDeleteI was looking for a solution to this problem and that was it.
Would be good to fix the typo, though. Like the guy above wrote, there's a double _
Cheers.
yes,
ReplyDeletei also was surfing the net for this problem like Wojtek,
and now i have solve my prob,
thanks
Thank you very much!
ReplyDeleteAgain an awesome Article
ReplyDeleteOur company has cumulative decades of experience programming PHP in all sorts of applications. PHP Programmers
ReplyDeleteThanks for sharing this information and I know it can helpful. I will save it so that if I can encounter a problem in PHP I can use it. Keep it up.
ReplyDeleteThis blog is having the general information. Got a creative work and this is very different one. We have to develop our creativity mind. This blog helps for this.
ReplyDeleteThank you for this blog. this is very interesting and useful.
Digital Marketing Company in Chennai
Wow it is really wonderful and awesome thus it is very much useful for me to understand many concepts and helped me a lot. it is really explainable very well and i got more information from your blog.
ReplyDeleteBest Android Training Institute in Chennai
Selam yonetici admin siteniz cok guzel basarilarinizin devamini bekleriz
ReplyDeleteSuperb. I really enjoyed very much with this article here. Really it is an amazing article I had ever read. I hope it will help a lot for all. Thank you so much for this amazing posts and please keep update like this excellent article.thank you for sharing such a great blog with us. expecting for your.
ReplyDeleteseo company in india
Excellent info, keep sharing useful post with us
ReplyDeleteWeb Design Company Bangalore | web Development Company in Bangalore | UI Design Company Bangalore | Ecommerce web design company Bangalore
Very informative post on PHP, If you could explain more it would be helpful for us.
ReplyDeleteThanks for the post. You have explained the topic in very simple and step by step
Web Design company in Hubli | web designing in Hubli | SEO company in Hubli
ladkiyo se facebook par dosti
ReplyDeletehow to remove pimples marks
blue whale suicide game
home made ac with ice
independence day quotes
mobile balance transfer kaise kare
Good blog post which provided a interesting information.keep updating...
ReplyDeleteSEO Company in India
This comment has been removed by the author.
ReplyDelete
ReplyDeleteI am very happy when read this blog post because blog post written in good manner and write on
good topic. Thanks for sharing valuable information.
School Information Management System,
Online Fee Payment Integration
College Management System
Message
I’m just always astounded concerning the remarkable things served by you. Some four facts on this page are undeniably the most effective I’ve had.
ReplyDeleteData science Course Training in Chennai | No.1 Data Science Training in Chennai
RPA Course Training in Chennai | No.1 RPA Training in Chennai
Nice Information, your blog is sharing unique information...
ReplyDeleteThanks for sharing!!!
B.SC 1st Year Result 2022 | B.SC 2nd Year Result 2022 | B.SC 3rd Year Result 2022.