This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Absolute path to images
#4
RE: Absolute path to images
(04-16-2023, 09:31 AM)TGates Wrote: Websites can not use absolute paths for images or files in that manner.
You would need to do something like this: (recommended) basketball stars
Code:
<img src="./images/image.jpg" />
or:
Code:
<img src="http://website.com/images/image.jpg" />

Also, if they are on different sites, then you will need to use the php function fopen or curl. Otherwise you will need to use JavaScript.

(11-20-2024, 11:19 PM)kevwebbie Wrote: You can't use a path from the /var/ folder. It would be website.com/images/your image.jpg

woww, what does /var/ mean?
Reply
Thanks given by:


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 rinkclared - 11-28-2024, 04:45 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
only 10 images? Ron-e 3 10 ,856 08-21-2014, 01:10 AM
Last Post: TGates

Forum Jump:


Users browsing this thread: 2 Guest(s)