So I am using the PHP Simple HTML DOM Parser to get the contents of a webpage. After I knew what I was doing was right, I still got the error that there was nothing to be fo
simple_php_dom.php
contains:
define('MAX_FILE_SIZE', 600000);
...
if (empty($contents) || strlen($contents) > MAX_FILE_SIZE)
{
return false;
}
The second page is over 672000 bytes, so this size check fails. Increase that constant and you should be OK.
I tested your question it's working fine. You have to check the php memory limit it's may be the problem
increase your PHP memory limit and try again
<?php
//use this to increase memory limit
ini_set('memory_limit', '200M');
$second_url = "http://www.transfermarkt.co.uk/en/chinese-super-league/torschuetzen/wettbewerb_CSL.html"; // does not work?
$html = file_get_contents($second_url);
echo "<textarea>Output\n===========\n $html</textarea><br />";