[PHP] Check RAW data
- Date: Sun, 20 Apr 2008 15:52:13 +0200
- From: "rb" <ric_bia@xxxxxxxxx>
- Subject: [PHP] Check RAW data
I'm getting from an external source a PNG image in raw format (encoded in base64).
And with this code I'll echo on the screen.
------
$img=base64_decode($_POST['img']);
header("Content-type: image/png");
echo $img;
------
How can I check if the data received is a real PNG raw (and not malicious
code) ?
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
- Follow-Ups:
- Re: [PHP] Check RAW data
- From: Jason Norwood-Young
- Re: [PHP] Check RAW data
- Prev by Date: Re: [PHP] Cron php & refresh
- Next by Date: Re: [PHP] Check RAW data
- Previous by thread: [PHP] Cron php & refresh
- Next by thread: Re: [PHP] Check RAW data
- Index(es):