Report on: LDAP specific?

From: Date: Fri, 15 Nov 2002 10:41:55 +0000
Subject: Report on: LDAP specific?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-124583@lists.php.net to get a copy of this message
tor, 2002-11-14 kl. 11:50 skrev Krzysztof Dziekiewicz: > > I can show a jpeg using a href with a target, either in a new page or a > > frame. To do this, PHP needs to be fed 'header("Content-type: > > image/jpeg")'. This can be put more or less anywhere in the very short > > script used for showing the jpeg and works. However, if I try to put any > > more html code into the script, i.e. 'print <html>';, print > > '<body>'; > > etc, *anywhere*, I get a "headers already sent" error. > You can not put any html code with image code. > If you send some html you mean to send > header("Content-Type: text/html") > with > header("Content-type: image/jpeg") > Where do you want go to ? > You can do so: > There is on the page http://xxx/user.html?name=smith some html > code where a user can act. > Among the html code you insert <img src="+¹ÁçÜý”qþT‘»î¬ > 1http://xxx/userfoto.html?name=smith"> > On http://xxx/userfoto.html you send > header("Content-type: image/jpeg") and the > image content and no html code. This fscking well works!!! It works with frames (one frame can be hidden) and it works with pages. I would *never* have had the intelligence to have found this out for myself, well maybe it woould have taken me a month. Krzysztof and php-general, I love you all like brothers. Best, Tony -- Tony Earnshaw Cricketers are strange people. They wake up in October, only to find that their wives had left them in May. e-post: tonni@billy.demon.nl www: http://www.billy.demon.nl

« previous php.general (#124583) next »