Using GZip in EXEOut

Having some issues getting gzip working.

Totally and fully understand how to use gzip in server environment but no so much with EXEOut. What I normally use in server environment is something like this: (Step 1 - PHP Config)

Cannot use .htaccess file so think this were my confusion begins…

I have added this line to PHP script:
if (substr_count($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip')) ob_start("ob_gzhandler"); else ob_start();

Getting error in PHP debug though:

PHP Notice: Undefined index: HTTP_ACCEPT_ENCODING

Have set values in php.ini for zlib.

Any ideas how in implement GZip in EXEOut?

Thanks in advance!

BTW: Seems like new 2.1 has solved many issues I was having and compiled exe’s actually seems faster:)

Is this question outside the bounds or something? Three days and still no reply?

Should I submit support email for questions like this?

Thank you for your feedback for ExeOutput 2.1.
But GZip isn’t necessary in ExeOutput since the browser and server are on the same computer: your HTML data is directly sent to the Chromium browser without requiring an Internet connection, so there is no need to compress it in order to gain transfer speed.

Ok, that makes sense. But when the software is pulling content from live online site be nice to use gzip.

For instance some areas loaded contain help files / videos which are on a live server. Same for some forms which process data.


When pulling content from online websites with HTTP, gzip will work in ExeOutput.
But it’s not what you are doing with your code:
$_SERVER[‘XXX’] will return info from our internal server (associated to the http://heserver/ protocol), not the info from a remote server.

Ok sir, thanks for info. Will see if can figure it out.

Did not take into consideration that actually using the built-in server. Not sure how to solve but maybe I can get some help on stackoverflow:)

Just check the host you want to deal with. If the URL begins with http://heserver, then it’s a URL for the built-in server.