Hi lucamar,
Yes, that is what I was thinking too. Doesn't work that way. I also tried putting a / in front, like...
<img src="/images/8d00ecb6-f3ba-4120-bef8-116388d4ba01.jpg" alt="Anti-Bot" width="350">
That doesn't work either. Still stuck.
Putting a slash in front of the URI would only work if the images were in directory "image" directly under the root of your server.
The question, really, is that if to access your page you have to type something like:
http://myserver/scripts/gimmethepage
, any relative URI in the generated page will end up having "
http://myserver/scripts/" in front, so you have to take that into account to know where to put the images.
Of course, if "
scripts" is a virtual directory (i.e. something that gets translated out of the "static" content root folder, as usually happens with e.g. Apache which redirects to a special
cgi-bin folder) then a generated (by the browser) URI like:
http://myserver/scripts/images/somejpeg.jpg will get interpreted by the server as something like: "look in cgi-bin for the script called 'images' and pass to it a parameter 'somejpeg.jpg'". Imagine the result if there is no "images" script!
What you should probably do is to put the images inside some folder in the static-content section of your server and use a normal URI for them, so if you put a static page "test.html" in the servers root containing:
<img src="http://myserver/images/test.jpg" width="350">
and put 'test.jpg' inside a folder "images" it would work.
Alternatively, you could add a handler for: "
http://myserver/scripts/images" and make it return the image file represented by the parameters from wherever it's stored.