Code {code ...} running Environment: Win64-apache2.4.9-php5.5.12Ubuntu64-apache2.4.7-php5.5.9 I Baidu Google checked a lot, can be determined: GD library has been enabled (successfully processed verification code and output) folder permissions normal (read and write files successfully) & amp; lt ;?...Code
Running environment:
Win64-apache2.4.9-php5.5.12
Ubuntu64-apache2.4.7-php5.5.9
I have checked a lot on Baidu/Google. You can confirm that:
Tried these:
The test tool is Chrome Postman:
-Failed:
All the Code involved:
330,'y'=>339);// $position_source=array('x'=>0,'y'=>0,'w'=>288,'h'=>402);// setPicture($target, $source, $position_target, $position_source);// header("Content-type: image/png; charset=utf-8");// header("Content-type: image/png;");// imagepng($target); // imagedestroy($target); // $target=imagecreatefrompng($_FILES['test']['tmp_name']);// var_dump($_FILES);
Reply content:Code
Running environment:
Win64-apache2.4.9-php5.5.12
Ubuntu64-apache2.4.7-php5.5.9
I have checked a lot on Baidu/Google. You can confirm that:
Tried these:
The test tool is Chrome Postman:
-Failed:
All the Code involved:
330,'y'=>339);// $position_source=array('x'=>0,'y'=>0,'w'=>288,'h'=>402);// setPicture($target, $source, $position_target, $position_source);// header("Content-type: image/png; charset=utf-8");// header("Content-type: image/png;");// imagepng($target); // imagedestroy($target); // $target=imagecreatefrompng($_FILES['test']['tmp_name']);// var_dump($_FILES);
The problem basically lies in the difference between the $ _ FILES path and the absolute path. We recommend that you print $ _ files out.