图片下载小问题 [英] Image Downloading small problem

查看:80
本文介绍了图片下载小问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿,


我正在尝试通过网络远程将图像下载到我的服务器以及用户输入的URL。我已设法用cron作业完成此操作,并将文件写入系统没问题。


我的问题在于查看图像,图像不会显示。我查看了图像的源代码,似乎是因为PHP正在将数据写入文件的顶部,

Hey,

I''m trying to remotely download an image to my server via the web and an URL that the user inputs. I have managed to do this with a cron job, and write the file to the system no problem.

My problem lies with viewing the image, the image wont show. I looked at the source code of the image and it seems to be because PHP is writing data to the top of the file,

展开 | 选择 | 换行 | 行号

推荐答案

获取图像的代码是什么?
what is your code for getting the image?


[PHP]<?php

include( ''includes / functions.php'');
[PHP]<?php
include (''includes/functions.php'');


错误="" ;;
Error = "";


这篇关于图片下载小问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆