Re: echo RAW data from unicode page?
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Re: echo RAW data from unicode page?

From: R. Rajesh Jeba Anbiah <ng4rrjanbiah@rediffmail.com>
Date: Thu Sep 29 2005 - 17:22:27 CEST

koteika@gmail.com wrote:
> How can I print raw data (string) from a UTF-8 .php file?
>
> Simple
>
> echo $var
>
> ouputs unicode string to browser (with unicode prefix bytes), but if I
> want to ouput BLOB data (jpeg file)?

  Samething, but with the proper headers set.
<http://in2.php.net/header>

eg. <p>foo foo <img src="image.php" /> </p>

--
  <?php echo 'Just another PHP saint'; ?>
Email: rrjanbiah-at-Y!com    Blog: http://rajeshanbiah.blogspot.com/
Received on Mon Oct 24 02:10:12 2005