I am working on a program that involves displaying images stored in a server. My working directory is
~/public_html/lab5/
The images are uploaded successfully to the following directory:
~/public_html/lab5/uploads/
Images ARE NOT displayed when I try to display the images using the path
~/public_html/lab5/uploads/image.jpg
but they are displayed normally using the following path
uploads/image.jpg
I'm just wondering, what is wrong with the relative-to-home path that I'm using?
Thanks in advance,
Rafi
在不知道您的服务器是什么样子的情况下很难确定,但我猜测根据您列出的路径 ~/public_html/lab5 是您的文档根目录,在这种情况下,网络服务器不会除了lab5及其子目录的内容外,什么都知道。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.