PHP web pages cannot display images. how can this problem be solved?

Source: Internet
Author: User
PHP web page cannot show pictures with file names containing spaces and Chinese ------ solution ------------------ 1. file name space and Chinese characters .. 2. relatively better. Otherwise, use absolute. ------ Solution ------------------ can you copy the path address to the url to display it? Are you sure your environment supports short labels? ------ solution -------- The PHP web page cannot display images
PHP web page cannot display images with spaces and Chinese characters in file names

------ Solution --------------------
1. the file name contains spaces and Chinese characters ..
2. relatively better. Otherwise, use absolute.
------ Solution --------------------
Can you copy the path address to the url for display?
Are you sure your environment supports short labels?
------ Solution --------------------
Chinese characters are not supported for web files? What are the specific problems?
Or yes? System problems. Or yes? Server problems?
Wait for the big guy to explain...
In addition. The file name can contain Chinese characters ..
------ Solution --------------------

You use short labels.
Normally
------ Solution --------------------
This should not be a problem with short labels.
Because lz only says that the image is not displayed. Url title may be included with img.

It can be determined that the image is not displayed due to the Chinese name of the file.

I also searched it just now. Or in the fog ..
Sit down and wait for the experts. Description. Haha.
------ Solution --------------------
New guy, add me QQ: 617070140
------ Solution --------------------
When you access the php file in a browser, check the source code to see what src is in img. If the problem is correct, it is related to the operating system of the server. It has nothing to do with php.
------ Solution --------------------
PHP code
$ Small = "125454455_1532 文.jpg"
------ Solution --------------------
Discussion

">


If not, you should not use Chinese. write standard file names.

------ Solution --------------------
It's a space and a Chinese character. you name it .....
Can it be normalized ....
------ Solution --------------------
If it is iis, yes. apache does not support Chinese.

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.