How to deal with image display

Source: Internet
Author: User
The figure shows the path G: networkupload_files20081331734471966.jpg for php to read the database, and put it in & lt; imgsrc & gt;. Why can't the image be displayed? Cannot I use full path? ------ Solution -------------------- networkupload_files20081331734471966.j Image Display
Php reads the database path G:/network/upload_files/2008/1331734471966 .jpg, and puts it in the middle. Why can't the image be displayed? Cannot I use full path?

------ Solution --------------------
/Network/upload_files/2008/1331734471966 .jpg?
------ Solution --------------------


Juvenile, G:/network/upload_files/2008/1331734471966 .jpg, is there a file?

Use relative paths. this is not good.
------ Solution --------------------
First, find out where the website directory is and start using/

For example, the web Directory is network.

The correct address is
./Upload_files/2008/1331734471966 .jpg


------ Solution --------------------
Drag the image you want to display to the display page. then, you can view the path of the image and integrate the root directory of the current website.
------ Solution --------------------
G: // network // upload_files // 2008 // 1331734471966.jpg
Or
G: \ network \ upload_files \ 2008 \ 1331734471966.jpg
We also recommend that you use the relative path:
Http: // localhost/upload_files/2008/1331734471966 .jpg
"Http: // localhost/" <=>/path/Apache/htdocs/
------ Solution --------------------
Discussion
Php reads the database path G:/network/upload_files/2008/1331734471966 .jpg, and puts it in the middle. Why can't the image be displayed? Cannot I use full path?

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.