Provides various official and user-released code examples for code reference. You are welcome to exchange and learn how to use PHP to implement real-time website functions.
Submit a request using a form
Processing page ..
$ X = $ _ REQUEST ['X'];
$ Y = $ _ REQUEST ['y'];
$ Format = $ _ REQUEST ['format'];
$ Site = $ _ REQUEST ['SITE'];
$ Surl = 'HTTP: // 0907.org/screenshot/screenshot_it.php? Site = '. $ site.' & x = '. $ x.' & y = '. $ y.' & format = '. $ format;
If ($ _ REQUEST ['format'] = 'png '){
$ Ifm = 'png ';
} Else {
$ Ifm = 'jpg ';
}
$ MMS = 'image/'. $ ifm;
$ Fn = 'screenshot. '. $ ifm;
If (isset ($ _ REQUEST ['preview']) {
$ Iurl = 'HTTP: // domain name/subdirectory/screenshot_it.php? Site = '. $ site.' & x = '. $ x.' & y = '. $ y.' & format = '. $ format;
$ Gwptitle = $ _ REQUEST ['SITE']. 'blogtail907.org ';
Include_once ("../css. php ");
// You can delete it here! Because it is CSS
Echo'';
Echo '»Click to download the image!
';
} Else {
Header ("Content-type: $ IBD ");
Header ("Content-Disposition: attachment; filename = $ FN ");
Readfile ($ surl );
}
?>
AD: truly free, domain name + VM + enterprise mailbox = 0 RMB