Unable to display phpforlinux Images

Source: Internet
Author: User
Imgsrcpc.jpg.....he will search for a pc.jpg Image Based on the current condition. If you use an absolute path, this will enter a trap. If the current path is varwwwtest (this path has your picture. php) and in picture. in php, imgsrchomewchpc.jpg .... there must be an error. She will be on the varwwwtest Road

Img src?pc.jpg ...... he will search for a pc.jpg image by using the current path. If you use an absolute path, this will lead to a trap. If the current path is/var/www/test (this path has your picture. php) and in picture. in php, img src =/home/wch/pc.jpg .... there must be an error. She will be in the/var/www/test path


He will search for a pc.jpg image by using the previous example. If you use an absolute path, this will go into a trap.

If the current path is/var/www/test (this path has your picture. php)

In picture. php, it is:

Definitely an error occurs. She will search for/home/wch in the/var/www/test path

The path for searching pc.jpg is

/Var/www/test/home/wch. This path does not exist at all.

Put the image in the php Directory.

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.