PHP intercepts the ie browser and reduces the source image. php intercepts the ie source image. PHP intercepts the ie browser and reduces the source image. the example in this article describes how php intercepts the ie browser and reduces the source image. For your reference, refer to the following method: PHP intercepts ie browsers and reduces the source image. php intercepts ie source images.
This article describes how to use PHP to intercept IE browsers and narrow down the source image. We will share this with you for your reference. The details are as follows:
// Capture a window (IE for example) $ ie = new COM ("InternetExplorer. application "); $ ie-> Navigate2 ($ webaddress); $ oWSH = new COM (" WScript. shell "); while ($ ie-> ReadyState! = 4) usleep (10000); $ handle = $ ie-> HWND; $ ie-> Visible = true; while ($ ie-> Busy) {com_message_pump (4000 );} $ im = imagegrabwindow ($ handle, 0); $ ie-> Quit (); $ file = "public/images /". time (). "iesnap.png"; imagepng ($ im, $ file); // ------------------ $ browser = new COM ("InternetExplorer. application "); $ handle = $ browser-> HWND; $ browser-> Visible = true; $ browser-> FullScreen = true; $ browser-> Navigate ($ webaddress ); while ($ browser-> Busy) {com_message_pump (4000);} $ im = imagegrabwindow ($ handle, 0); $ browser-> Quit (); // opendir ("public/images/"); $ new_img = imagecreatetruecolor ("206", "132"); $ file = "public/images /". time (). "ie.png"; imagecopyresampled ($ new_img, $ im, 206,132,206,142,102,); imagepng ($ new_img, $ file); imagedestroy ($ new_img );
If you have any questions, choose desktop and program interaction.