(04-13-2023, 03:39 AM)franmm25 Wrote: I try show images with absolute path and all time don´t show images, with the same path read directory perfectly with php but don´t show images
My Example:
I think the path is right, but the only problem is don´t show images, also read perfectly dir and the number of images inside but don´t show image, i disable open_dir_base for read directory in this domain, but how i tell don´t show images with src.
Thank´s in advanced for the help, regards.
Websites can not use absolute paths for images or files in that manner.
You would need to do something like this: (recommended)
Code:
<img src="./images/image.jpg" />
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.