title: how to check and set max_allowed_packet mysql variable
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/93128/mysql-error-1153-got-a-packet-bigger-than-max-allowed-packet-bytes">MySQL Error 1153 - Got a packet bigger than ‘max_allowed_packet’ bytes</a>  </p>
  </blockquote>
  
  
  
  <p>Hi I am getting the error :</p>
  
  <p><code>[1153] Got a packet bigger than 'max_allowed_packet'bytes</code></p>
  
  <p>but I made no changes in my source code and the hosting states that they did not made any change in server settings.</p>
  
  <p>I don't know what happened. But I am trying to find the reason.</p>
  
  <p>so, how to check <code>max_allowed_packet</code> mysql variable by php script?</p>
  
  <p>and is that possible to set it in source code?</p>