» Quick Links
You can make money on these forums
We Share profits with you
Google
Google Adsense
Google Adwords
YPN
Yahoo
MSN Search
Web Directories
Web Hosting
Web Hosting Offers
Hosting News
Suggestions
Link Building
Domain Names
PHP Forums
MySQL Forums
» More Links
OSP News
Reseller Hosting
Shared Hosting
Dedicated Servers
Google Adsense
Search Engine Marketing
Link Development
Affiliate Marketing


» Advertising
Multiple DC PR Check

Free SEO Tools


Go Back   Webmaster Forums > Website Developement / Programming > PHP Programming and Tips

PHP Programming and Tips Discuss about PHP programming and Share Tips. Ask questions about Scripting and Errors.

Reply
 
Thread Tools Display Modes
  #1  
Old 06-30-2006, 12:53 PM
teaser teaser is offline
OSP Starters
 
Join Date: Jun 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
teaser is on a distinguished road
Default Can one have PHP4 parse .htm/.html and keep the Last-Modified header

hey, ans my querry,
Lost Last-Modified when set apache to use PHP4 module for all .htm/.html files. Can one have PHP4 parse .htm/.html and keep the Last-Modified header?

regards
teaser -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
Revenue Sharing Ads ( ?):
  #2  
Old 06-30-2006, 12:56 PM
tripleh tripleh is offline
OSP Starters
 
Join Date: Jun 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
tripleh is on a distinguished road
Thumbs up

hello friend

No. The server actually inserts the last-modified information when you
use a header. If you are running the .htm/.html pages through PHP then
you will not get this information since the server is not reading the
files, it is getting the results of a script (stdout).
Instead, you should use .phtml or .php extensions on your script files and allow normal .html files to be handled by the server. I would put last-
modified into a database and update it when the site is updated.

Hope this helps -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 11:19 PM.