下面是部署在你的服务器上处理涂改网API回调PHP程序,如果你的服务器上使用的是其他语言,请按着其他语言做相应的修改。
<?php
/**
* tugai.net callback test
*
* Install this script on your server to test and debug callbacks from
* www.tugai.com. Note: this script will need read and write access
* to your image directory.
*/
$tugai_output = $_GET['tugai_picture'];
$data = file_get_contents($tugai_output);
$fp = fopen(basename($tugai_output, 'w');
fwrite($fp, $data);
fclose($fp);
?>