Javascript-apache + php is used as the backend. foreground images cannot be displayed.

Source: Internet
Author: User
The background of our website is apache + php, and the business process will generate an image in JPEG format. There is an img tag at the front end, and set src to the image for display, at present, images may not be displayed in a probabilistic manner. images downloaded through ftp can be normally displayed. Images loaded using src are used... the background of our website is apache + php, and the business process will generate an image in JPEG format. There is an img tag at the front end, and set src to the image for display, currently, images may not be displayed in a probabilistic manner. images downloaded through ftp can be normally displayed. the following error is displayed after the images loaded using src are opened in Notepad:


Warning: Unexpected character in input: '' (ASCII=7) state=0 in /tmp/img1.jpeg on line 1854

Parse error: in /tmp/img1.jpeg on line 1854

I wonder if anyone has ever met

Reply content:

The background of our website is apache + php, and the business process will generate an image in JPEG format. There is an img tag at the front end, and set src to the image for display, currently, images may not be displayed in a probabilistic manner. images downloaded through ftp can be normally displayed. the following error is displayed after the images loaded using src are opened in Notepad:


Warning: Unexpected character in input: '' (ASCII=7) state=0 in /tmp/img1.jpeg on line 1854

Parse error: in /tmp/img1.jpeg on line 1854

I wonder if anyone has ever met

It seems that there is a problem with the image generated in the background. The method for opening the image in the browser is different from that for downloading the image using ftp (which should be opened using the local image management tool,
One sentence: the opening posture is incorrect.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.