apache_response_headers() - can LiteSpeed emulate?

Discussion in 'PHP' started by aww, May 5, 2007.

  1. aww

    aww New Member

    Is there any chance LiteSpeed could add support for apache_response_headers()?

    I don't believe it's working and it causes some software to work improperly like wp-cache for wordpress (it can't learn what mime types were sent with the content).
    Last edited: May 5, 2007
  2. mistwang

    mistwang LiteSpeed Staff

    using apache specific function is not a good practise in PHP programming.
    I think wp-cache for wordpress should work well with LiteSpeed, wordpress.com and a few other large blog sites are using it with LiteSpeed without any problem.

    It is possible to fake a apache_response_headers() in our PHP SAPI, we will add it at a later time.
  3. aww

    aww New Member

    Well the problem is that the alternative function, headers_list does not exist in PHP 4.x

    Without one of them, it's impossible for a caching module to determine and store the correct mime type for a document that was just sent.
  4. mistwang

    mistwang LiteSpeed Staff

    apache_response_headers() function has been added in our PHP LSAPI 4.0 release.
  5. aww

    aww New Member

    I cannot say enough how impressed I am with the
    responsiveness of LiteSpeed to bug fixes and enhancements.

    Thank you very much, I look forward to it.

Share This Page