Link to php generated image

images php coding issues or problems here.

Moderators: egami, macek, gesf

Post Reply
mliungman
New php-forum User
New php-forum User
Posts: 4
Joined: Wed Nov 29, 2017 3:11 am

Wed Nov 29, 2017 3:55 am

Hi (updated this post due to link issues...)!

How come my php image shows up when I go to it directly in the browser, but does not show up when I use <img src with the exact same link?

Works: "http://dev.medinsbiologi.se/vattern/dat ... lnamn=1050. Pirkåsabäcken, Brogårdssand&Kl1=0&Kl2=0&Kl3=0&Kl4=0&Datatab=A_Vattenkemi" (Note the special characters, do not click the link but use copy paste if you want to test...)
Does not work: http://dev.medinsbiologi.se/vattern/test.aspx (see source)

I'm guessing it is a matter of url-encoding, but I have tried multiple ways without success. My src-url is generated in aspx, and maybe this is the problem. Apparently php can handle the direct browser url, but not the html-enclosed.

Please point me in the right direction!

Regards, Martin

mliungman
New php-forum User
New php-forum User
Posts: 4
Joined: Wed Nov 29, 2017 3:11 am

Thu Nov 30, 2017 6:15 am

Turns out changing the aspx-file format to UTF-8 solved part of the problem.

Still my SQL queries are acting up. Passing aspx variables to php is a nightmare...

Post Reply