Can't Load Too Big Html File When Grab
here's my problem. i have tried to grab html file. but this file have 350 mb size. and when i tried to load it with file_get_contents and using DOM it not showing any output. just
Solution 1:
Try to increase the memory limit in your PHP.ini or locally for your app using the following code :
// I'm setting the memory limit to 1024M, but it should work with less memory
ini_set('memory_limit','1024M');
// Enable error reporting - TO BE REMOVED BEFORE YOU GO TO PRODUCTION
error_reporting(E_ALL);
ini_set('display_errors', TRUE);
ini_set('display_startup_errors', TRUE);
ini_set('max_execution_time',5000);
$source=file_get_contents("C://xampp/htdocs/Champion/machine-
logs/LogPrinting03/RIPLOG.HTML");
$dom = new DOMDocument();
$dom->loadHTML($source);
echo $source;
Post a Comment for "Can't Load Too Big Html File When Grab"