Note that there are some explanatory texts on larger screens.

plurals
  1. POContent encoding error on class inclusion php
    text
    copied!<p>Good day to you all,</p> <p>I am here with a question, I cannot seem to have this issue figured out. This is a Content-Encoding problem caused by a class of mine that I include.</p> <p>As soon as I comment the class out, it works like a charm.</p> <p>It is a browser identification class, it's also a static class so you don't call</p> <pre><code>new Classname(); </code></pre> <p>But instead just use</p> <pre><code>Client::$System-&gt;OS </code></pre> <p>the class does not output ANY content, no echo's no print_r's or anything like that, so I am abit lost on this issue here, I have not seen this error either.</p> <p>Since this class is 300 lines I'd rather not include it here, however I can upload it to dropbox for anyone to download (and use as you wish) and have a look at why it's giving me the error.</p> <p>If anyone needs more clarity on the question, please comment and I will include w/e I have to.</p> <p><strong>EDIT</strong></p> <p>This problem happens with the ob_gzhandler, when I try to gzip the website and send it to the browser, the browser simply responds with "Content-Encoding Error".</p> <p>This error, as mentioned above only happens when I include my browser-sniffing class as soon as I comment it out it all works fine, PS: I will post a pastebin of the actual class later in the evening.</p> <p><strong>EDIT 2</strong></p> <p>Click <strong><em><a href="http://pastebin.com/mREcwPkA" rel="nofollow">here</a></em></strong> for the link to the script (on pastebin) Hoping this will give enough information to solve the problem.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload