public function mine_sc(){
$url='http://localhost/hesabdari/user/cost/cost_about/24';$screen = new ScreenCapture($url);
//$screen->setWidth(intval($_GET['w'])); //$screen->setHeight(intval($_GET['h'])); //$screen->setClipWidth(intval($_GET['clipw'])); //$screen->setClipHeight(intval($_GET['cliph'])); //$screen->setUserAgentString($_GET['user-agent']); //$screen->setBackgroundColor($_GET['bg-color']); //$screen->setImageType('jpeg');
$fileLocation = 'test';$screen->save($fileLocation);
header("Cache-Control: no-cache, no-store, must-revalidate"); // HTTP 1.1.header("Pragma: no-cache"); // HTTP 1.0.header("Expires: 0"); // Proxies.header('Content-Type:' . $screen->getImageType()->getMimeType());header('Content-Length: ' . filesize($screen->getImageLocation()));readfile($screen->getImageLocation()); }
برچسب:
نویسنده: خنج