I’m trying to learn Simple HTML DOM library and tested it on a network PC (Cent OS) with PHP5.2.8 with the following URLs
When I try to load URL2 using $html = file_get_html(); I get $html as an object but when I do the same with URL1 it gives me NULL (not an object) whereas URL2 is a proper URL. I tried to do the same on my local system with xampp 1.8.1 (PHP 5.5.6) and it’s loading both URLs fine. I must work on the network PC so can anyone please tell which libraries are important to be installed with PHP for Simple HTML DOM to work with? Is it MBSTRING (multi byte string library; which is not on the network PC)? Any other?
Looking forward to a quick reply!