note 90199 added to function.base64-decode

From: Date: Thu, 09 Apr 2009 16:20:05 +0000
Subject: note 90199 added to function.base64-decode
Groups: php.notes 
Request: Send a blank email to php-notes+get-153027@lists.php.net to get a copy of this message
I had a problem testing whether an imap message body was base64 encoded on a pre 5.2.* server. I had been using this function on a post 5.2 server. I found that the function imap_base64() returns FALSE on failing to decode a string, and that I could use that to check instead. <?php if(imap_base64($body)) $body = imap_base64($body); ?> ---- Server IP: 92.48.74.199 Probable Submitter: 88.97.18.12 ---- Manual Page -- http://www.php.net/manual/en/function.base64-decode.php Edit -- https://master.php.net/note/edit/90199 Del: integrated -- https://master.php.net/note/delete/90199/integrated Del: useless -- https://master.php.net/note/delete/90199/useless Del: bad code -- https://master.php.net/note/delete/90199/bad+code Del: spam -- https://master.php.net/note/delete/90199/spam Del: non-english -- https://master.php.net/note/delete/90199/non-english Del: in docs -- https://master.php.net/note/delete/90199/in+docs Del: other reasons-- https://master.php.net/note/delete/90199 Reject -- https://master.php.net/note/reject/90199 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#153027) next »