Win64-apache2.4.9-php5.5.12
Ubuntu64-apache2.4.7-php5.5.9
GD库已经开启(成功处理验证码并输出)
文件夹权限正常(读写文件成功)
前没有内容
直接输出上传的文件,失败
读取服务端文件并输出,成功
重命名上传的文件并输出,失败
读取上次会话上传的文件并输出,成功
成功截图:
-失败截图:
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);
问题基本就是$_FILES的路径和绝对路径有区别,建议你可以把$_files打印出来看看