title: PHP base64_encode failed and script terminated with blank page?
body: <p>I have an existing php script using base64_encode that works fine and then when i move this script into a new server it doesn't work, the script will just terminate with a blank page.</p>
  
  <p>I tried to catch exception</p>
  
  <pre><code>try
          {
              $encrypted = base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_256, md5($key), $string, MCRYPT_MODE_CBC, md5(md5($key))));
          }
          catch(Exception $ex) 
          {
              echo 'Message: ' . $ex-&gt;getMessage(); die;
          }
  </code></pre>
  
  <p>It still only shows a blank page. Any idea what caused this?</p>