Current location: Hot Scripts Forums » Programming Languages » PHP » How to Make my Php output write static Html files


How to Make my Php output write static Html files

Reply
  #1 (permalink)  
Old 02-04-05, 12:22 AM
cebuy cebuy is offline
Newbie Coder
 
Join Date: Jun 2003
Posts: 78
Thanks: 0
Thanked 0 Times in 0 Posts
How to Make my Php output write static Html files

I need to make my php output write static html files in a file daily. How do I do that? I am new to php so any advice would be great.

The site I coded in php is http://www.rrsportsintl.com Every page is a php page but is displayed as /shop/united_cutlery/ instead of /shop.php?cat=united_cutlery.
__________________
Thanks!
Chris Chandler
WebMaster of:
Loan Quote, Christian eBuy, & North Alabama,
Reply With Quote
  #2 (permalink)  
Old 02-04-05, 05:52 AM
mlaplante's Avatar
mlaplante mlaplante is offline
New Member
 
Join Date: Feb 2005
Location: Québec
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Hi there,

You can use a cache system. In the begining of your script, you check if the cache file is still valid (one day as you propose), if yes you simply show it (static), if not you reload the page dynamicly and then save the output to the cache page.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
html tutoral thefrtman HTML/XHTML/XML 5 04-27-09 10:25 AM
Classified Ads skipper23 Perl 3 11-22-05 02:22 AM
How to write the output of CGI script into HTML? Persis Perl 2 01-23-05 04:52 AM
Classified Ads skipper23 Perl 2 12-30-03 03:43 AM
need help writing script to let user edit thier html or php files pinochio53 PHP 14 12-15-03 07:26 AM


All times are GMT -5. The time now is 05:28 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.