Jump to content

theteenager

New Members
  • Posts

    2
  • Joined

  • Last visited

    Never

Contact Methods

  • Website URL
    http://www.hanburger.net

Profile Information

  • Gender
    Not Telling

theteenager's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Just have more types assigned to PHP. For example, if you want html and html files to be parsed by PHP, just add the following to httpd.conf: [code]AddType application/x-httpd-php .htm .html[/code] The requested filename will be in the variable $_SERVER["PHP_SELF"]
  2. If I turn zlib.output_compression on, the contents get compressed, but PHP fails to send the "Content-Encoding: gzip" header. This results in garbage being displayed in the browser. It is currently a bug listed [a href=\"http://bugs.php.net/bug.php?id=32283\" target=\"_blank\"]here[/a]... Now, there's work around. I can get PHP to detect if the browser supports gzip, and gzip the content manually. However, I don't know how to detect the headers sent by the browser. Any suggestions? Thanks.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.