Re: Script returns an image?

From: Date: Wed, 14 Mar 2001 14:44:25 +0000
Subject: Re: Script returns an image?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-43843@lists.php.net to get a copy of this message
Return document , other than HTML is very simple. The type of the document is contained in the http content-type header. You can easly set it by the header function. header("Content-type: application/x-www-urlform-encoded"); Pablo pablo@e-nov.com > Yasuo Ohgaki > ========================= > My favorite links > [RFC] http://www.faqs.org/rfcs/ [W3C] > http://www.w3.org/ > [PHP Manual] http://www.php.net/manual/en/ > > > ----- Original Message ----- > From: "Paul Warner" <pwarner@winners-circle.com> > To: <php-general@lists.php.net> > Sent: Wednesday, March 14, 2001 11:24 PM > Subject: [PHP] Script returns an image? > > > > I am trying to make a call from one page (pure HTML) that would include a > > tag as follows: > > > > <img > > src=http://mydomain.com/returnimage.php?var1=value1&var2=value2 > > width="100" height="50" alt="Description"> > > > > My question is how to get the php script to return the proper headers as > > well as the image to the client. This will be used for tracking when > > certain copyrighted images (actually blueprints) are accessed, and by whom > > by making some db entries when called, then returning the image. The image > > is static and is not dynamically generated based on any of the values in the > > uri. So far all I get are broken images. I'm guessing that it has to do > > with the headers... > > > > -- P > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > > For additional commands, e-mail: php-general-help@lists.php.net > > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > >

« previous php.general (#43843) next »