LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > External Applications > PHP > apache_response_headers() - can LiteSpeed emulate?

Reply
 
Thread Tools Display Modes
  #1  
Old 05-05-2007, 10:56 AM
aww aww is offline
Senior Member
 
Join Date: May 2007
Posts: 237
Default apache_response_headers() - can LiteSpeed emulate?

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 by aww; 05-05-2007 at 11:00 AM..
Reply With Quote
  #2  
Old 05-05-2007, 05:31 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
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.
Reply With Quote
  #3  
Old 05-05-2007, 10:30 PM
aww aww is offline
Senior Member
 
Join Date: May 2007
Posts: 237
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.
Reply With Quote
  #4  
Old 05-10-2007, 01:21 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
apache_response_headers() function has been added in our PHP LSAPI 4.0 release.
Reply With Quote
  #5  
Old 05-10-2007, 04:02 PM
aww aww is offline
Senior Member
 
Join Date: May 2007
Posts: 237
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.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 03:22 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.