RE: [PHP] Dynamic to Static

From: Date: Thu, 15 Jul 2004 06:04:04 +0000
Subject: RE: [PHP] Dynamic to Static
Groups: php.general 
Request: Send a blank email to php-general+get-190563@lists.php.net to get a copy of this message
Hello Ed, We have used a combination of the following scripts on our site: /jim if ((filemtime("cache/$sidid") + 60) > time()) { $cachefile = fopen("cache/$sidid","r"); fpassthru($cachefile); exit(); } // start buffering the output ob_start(); // output format - either "www" or "file" $output = "outputfile.php"; $data = ob_get_contents(); $fp = fopen ("inputfile.inc", "w"); fwrite($fp, $data); fclose($fp); ob_end_clean(); echo "finished"; -----Original Message----- From: Ed Lazor [mailto:Ed.Lazor@d20News.com] Sent: den 15 juli 2004 06:20 To: php-general@lists.php.net Subject: [PHP] Dynamic to Static Is anyone taking a dynamic PHP / MySQL site and storing or cacheing it statically in order for pages to display more quickly when visitors access the site? If so, what solutions are you using to achieve this? Thanks, Ed

« previous php.general (#190563) next »