PHP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingPHP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old July 31st, 2004, 01:40 AM
keyply keyply is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Location: Southern California
Posts: 1 keyply User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Allow file expirary settings in php.ini ?

My HTML files are parsed for PHP, declared in .htaccess:

AddHandler application/x-httpd-php .html

Because my hosts default php.ini blocks a few things I want, I wrote a custom php.ini to override it -this is working well.

My File Expirary params are also set in .htaccess:

ExpiresActive On
ExpiresDefault A21600
ExpiresByType image/gif A2592000
ExpiresByType image/jpeg A2592000
<FilesMatch "^(error|forbidden)\.html$">
ExpiresDefault A0
</FilesMatch>

...but are not being passed into the HTTP header.

If I remove the PHP/HTML handler from my .htaccess, the expirary settings display in the HTTP header.
So I think my host's default php.ini is blocking it.


How do I allow/include expirary settings in my custom php.ini?
All I've seen is session/cookie expirary setting examples so far when I search.

Thanks.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingPHP Development > Allow file expirary settings in php.ini ?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway