Note that there are some explanatory texts on larger screens.

plurals
  1. POhave img src = dl-main.php?f=filename.jpg retrieve said image from remote server
    primarykey
    data
    text
    <p>I am trying to do the following; dynamically pick a server with the image on it, and then show said image in <strong>img src=""</strong>. Yeah I know, I am horrible at explaining stuff like this but this should clear it up:</p> <p>dl-main.php (on server0.domain.com)</p> <pre><code>$url = 'http://server2.domain.com/offerimage.php?f='.$_GET["f"]; header( 'Location: '.$url ) ; </code></pre> <p>offerimage.php (on server2.domain.com)</p> <pre><code>//Lots of link-protection stuff here $f = "/".$_GET["f"]; $url = 'http://server2.domain.com'.$uri_prefix.$m.'/'.$t_hex.$f; echo' &lt;img src="'.$url.'"&gt;&lt;/img&gt; '; </code></pre> <p>dl.php (on many other servers)</p> <pre><code>img src="http://server0.domain.com/dl-main.php?f=lalala.gif" </code></pre> <p>So it pretty much goes like this: Random person adds <strong>img src</strong> directing to dl-main.php?f=<em>filename</em> on server0. server0 then decides which server will provide the image. In the above example I am using only one server; server2</p> <p>Now I simply want dl.php to show the photo hosted on server2.domain.com . As it stands when I directly visit dl-main.php it succesfully redirects me to dl.php, which then succesfully shows me the image I requested. But when I use dl-main.php in a <strong>img src</strong> it doesn't show the image. I didn't expect it to work but it was worth a shot, but now I don't know what to do anymore :o </p> <p>I hope this failed attempt is a good example of what I'm trying to accomplish here.</p> <p>Thanks!</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload