Php real-time website implementation code
2. php code
-
$ X = $ _ REQUEST ['x'];
- $ Y = $ _ REQUEST ['Y'];
- $ Format = $ _ REQUEST ['format'];
- $ Site = $ _ REQUEST ['site'];
- $ Surl = 'http: // jbxue.com/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;
- // Example: http://jbxue.com/screenshot_it.php? Site = '. $ site.' & x = '. $ x.' & y = '. $ y.' & format = '. $ format;
- $ Gwptitle = $ _ REQUEST ['site']. 'bbs.it-home.org ';
- Include_once ("../css. php ");
- // Can be deleted
-
Echo'
';
- Echo '»Click to download the image!
';
- } Else {
- Header ("Content-type: $ IBD ");
- Header ("Content-Disposition: attachment; filename = $ FN ");
- Readfile ($ surl );
- }
- ?>
|