Re: build an anonymizer in PHP

From: Date: Sun, 03 Dec 2000 21:46:14 +0000
Subject: Re: build an anonymizer in PHP
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-28474@lists.php.net to get a copy of this message
I might be suggesting what you have already tried with header, but are you setting the Content-type to image/gif etc before sending images to the browser? All the best, Louis ----- Original Message ----- From: Peter Troll <pt@fastmail.ca> To: <php-general@lists.php.net> Sent: Sunday, December 03, 2000 9:17 PM Subject: [PHP] build an anonymizer in PHP > Hi folks, > > I am currently building a protype of anonymizer (a proxy for Web contents). > > I have set up a simple form which takes the URL, open it with fopen and writes a temporary file. Once the temporary file is created I parse <A href>, <IMG SRC> tags etc. so that they look like this: > > http://www.somesite.com/index.html becomes > > http://www.mysite.com/surf.php3?URL=http://www.somesite.com/index.html > > When the file has been scanned I write its contents back to the browser using echo(). URLs are parsed properly but images do not appear. However by looking at the output text I can see I achieve the same results as other commercial anonymizers. The problem lies with the way the output (binary content) is sent back to the browser. > > I have also tried sending back the contents as HTML with header(), to no avail. > > Does someone has any clues or general information on how to proceed ? > > Regards, > > -- > 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 (#28474) next »