My favorites | Sign in
Project Logo
                
Search
for
Updated Dec 26, 2008 by JanoChen
WebPageGrabber  
WebPageGrabber 網頁快照函式 說明頁

Introduction

  • 本程式是參考 imagegrabwindow() 的範例修改而成,主要是增加“能夠完整的拍攝大於一個畫面的網頁”的功能。
  • 利用 COM 呼叫 IE (InternetExplorer.Application) 瀏覽網頁,再用 imagegrabwindow() 將畫面拍下。
  • 若網頁內容超過一張畫面,則透過 COM 命令 IE 捲動到各個頁面後拍攝,再將畫面合併。

Details

Requirements 執行環境需求

Examples 程式範例

<?php
include('WebPageGrabber.inc.php');

$url = 'http://www.php.net/downloads.php';
$filename = date('YmdHis') . '.jpg';

$im = web_page_grabber($url);

imagejpeg($im, $filename);
?>

Notes 附註

See Also


Sign in to add a comment
Hosted by Google Code