PHP Classes

File: sample_part_file_cache.php

Recommend this page to a friend!
  Classes of modbay   Cache File - Part File   sample_part_file_cache.php   Download  
File: sample_part_file_cache.php
Role: Example script
Content type: text/plain
Description: Example of part file caching
Class: Cache File - Part File
Cache PHP script output in files
Author: By
Last change: Allow Users to see a sample without need to login
Date: 13 years ago
Size: 1,670 bytes
 

Contents

Class file image Download
<?php
include_once 'class/cache.php';
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">

    <head>

        <!--Meta Tags-->
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta http-equiv="Content-Style-Type" content="text/css" />
        <meta http-equiv="Content-Script-Type" content="text/javascript"/>
        <meta http-equiv="Content-Language" content="en"/>

        <meta name="Robots" content="INDEX,FOLLOW"/>
        <meta name="Copyright" content="Rawas Travel 2010" />
        <meta name="Author" content="Mohammad A.Baydoun"/>
        <meta name="Distribution" content="global" />
        <meta name="Description" content="" />
        <meta name="Keywords" content="" />



        <!--Title-->
        <title>Sample File</title>


    </head>
    <body>
        <?php
       
/**
         * call the class after the include
         */
       
$part_cache = new cache();
       
$part_cache->start_cache("part_cache");
       
?>
The site only accepts contributions that contain code in the form of Object Oriented Programming (OOP) classes.
        <?php $part_cache->end_cache(); ?>
If you do not know what is Object Oriented Programming, please learn about it first before you consider submitting any code.
        Of course you may submit additional scripts or other related files, but each contributed package must include at least one class of objects that you submit as part of the package.
    </body>
</html>