getCompletePage($keepjs, $contentonly, $compress); if (! $html) { header('LOCATION: index.php?e=' . urlencode('Error saving the page, please try again later.')); exit; } file_put_contents('output.html', $html); header('LOCATION: index.php?s=1'); exit; } else { header('LOCATION: index.php'); }