Hello,
Gibt es hier eine andere Möglichkeit?
(Ausgabe ohne vorherige Speicherung)
klar - führe dir das Konzept von HTTP vor Augen: zwischen deiner HTML-Seite und dem Abrufen eines Bildes besteht zunächst mal kein Zusammenhang. Der Browser empfängt eine HTML-Seite und liest darin ein img-Tag. Darin findet er eine Source-Angabe. Wenn er gut gelaunt ist fordert er als nächstes dieses Resource an und erhält als Antwort die Binärdaten des Bildes.
Der Vorgang den du willst ist analog mit dem einzige Unterschied, dass du nicht ein fertiges Bild meinst sondern ein PHP-Skript, das die Daten ausgibt.
Du benötigst also:
- Eine HTML-Seite (respektive ein PHP-Skript), das ein img-Tag beinhaltet, das auf ein PHP-Skript verweist.
- Ein PHP Skript, das gesagt bekommt um welches Bild es geht und entsprechend die Binärdaten an den Browser verschickt. Vielleicht hilft dir dabei dieser Artikel.
MfG
Rouven
--
-------------------
He is entertaining both out of the car and in the car because if you tell him that a corner is almost flat then he is the guy who is going to try to take it flat even if it means shunting it the other side of it, he will come with the data and say 'hey, I may have crashed and destroyed the car, but I was flat-out'. That is an interesting quality that he has! -- Team Member on Jacques Villeneuve
-------------------
He is entertaining both out of the car and in the car because if you tell him that a corner is almost flat then he is the guy who is going to try to take it flat even if it means shunting it the other side of it, he will come with the data and say 'hey, I may have crashed and destroyed the car, but I was flat-out'. That is an interesting quality that he has! -- Team Member on Jacques Villeneuve