Web browsers require **web-accessible URL paths** in the `src` attribute of `<img>` tags, not paths from server file systems. PHP may read your local directory, but the browser tries to access the given path as a URL relative to your domain, which causes an error. Changing your `src` to a web-accessible path will iron this out. For instance, `src="/images/image.jpg"`assuming `/images/` is accessible from the root of your website.
Absolute path to images
|
« Next Oldest | Next Newest »
|
Messages In This Thread |
Absolute path to images - by franmm25 - 04-13-2023, 03:39 AM
RE: Absolute path to images - by TGates - 04-16-2023, 09:31 AM
RE: Absolute path to images - by kevwebbie - 11-20-2024, 11:19 PM
RE: Absolute path to images - by gerougee999 - Yesterday, 04:14 PM
|
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
only 10 images? | Ron-e | 3 | 12 ,382 |
08-21-2014, 01:10 AM Last Post: TGates |
Users browsing this thread: 1 Guest(s)