Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/image-processing/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
PHP图像上传和裁剪与url_Php_Image Processing_Image Uploading - Fatal编程技术网

PHP图像上传和裁剪与url

PHP图像上传和裁剪与url,php,image-processing,image-uploading,Php,Image Processing,Image Uploading,我使用下面的上传类进行图像上传和操作。 现在我想将表单input type=“file”更改为一个文本字段,在该字段中我将给出一个图像URL。 我怎样才能使这个上传类工作。 提前感谢。此类似乎也接受url作为参数,因此只需将输入类型更改为text,名称更改为例如image\u url,并在提交表单后使用此行按照您的意愿操作图像: $handle = new upload($_POST['image_url']); 通过文本框获取文件名,并在后台使用php curl函数在服务器中上载文件,您的

我使用下面的上传类进行图像上传和操作。

现在我想将表单input type=“file”更改为一个文本字段,在该字段中我将给出一个图像URL。 我怎样才能使这个上传类工作。
提前感谢。

此类似乎也接受url作为参数,因此只需将输入类型更改为
text
,名称更改为例如
image\u url
,并在提交表单后使用此行按照您的意愿操作图像:

$handle = new upload($_POST['image_url']);

通过文本框获取文件名,并在后台使用php curl函数在服务器中上载文件,您的上载类将正常工作

您已经尝试过什么?