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?