1) { $outs = ""; for ($ii=0; $iichildNodes; foreach ($children as $child) { $innerHTML .= $element->ownerDocument->saveHTML($child); } return $innerHTML; } if (isset($_GET['populate'])) { try { $data = @file_get_contents("http://www.rjmprogramming.com.au/index.html"); $doc = new DOMDocument(); $doc->preserveWhiteSpace = FALSE; $before = libxml_use_internal_errors(true); $doc->loadHTML($data); $predata = noonclick(DOMinnerHTML($doc->getElementById('tuts'))); echo ""; } catch (Exception $e) { throw new Exception( 'Something really wrong', 0, $e); } } else { echo ""; } ?>