The picture shows, what to do with

Source: Internet
Author: User
Picture Display
PHP read out the path of the database g:/network/upload_files/2008/1331734471966.jpg, and then put it in the why can't I display the picture? Can't I use the full path?

------Solution--------------------
/network/upload_files/2008/1331734471966.jpg this?
------Solution--------------------


Juvenile, g:/network/upload_files/2008/1331734471966.jpg exist file?

Use a relative path, it's not good.
------Solution--------------------
Find out where the directory of the site is and then start using it from that place.

For example, a web directory is a network

Then the correct address is
./upload_files/2008/1331734471966.jpg


------Solution--------------------
Drag the picture you want to display to the display page, and look at the path where the picture is displayed, and the root of the current Web site.
------Solution--------------------
G://network//upload_files//2008//1331734471966.jpg
Or
G:\network\upload_files\2008\1331734471966.jpg
It is also recommended to use relative paths:
Http://localhost/upload_files/2008/1331734471966.jpg
"http://localhost/" <=>/path/apache/htdocs/
------Solution--------------------
discuss
PHP read out the path of the database g:/network/upload_files/2008/1331734471966.jpg, and then put it in the why can't I display the picture? Can't I use the 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.