PHP Classes

File: test_04_quotes.php

Recommend this page to a friend!
  Classes of n/a   Cache output and objects   test_04_quotes.php   Download  
File: test_04_quotes.php
Role: Example script
Content type: text/plain
Description: Test of serialization with special characters
Class: Cache output and objects
Cache the output of PHP scripts in files
Author: By
Last change:
Date: 17 years ago
Size: 653 bytes
 

Contents

Class file image Download
<?

/*
This is test for data serialization....
*/

require_once("cache.php");

$path = ".";
$cache = new Cache($path);

$test_variable = null;

while(
$cache->save("cache.test_03.tmp",10,array(&$test_variable)))
{

   
$test_variable = array(true,false,0,1,2,"x"," \" ' \n \t ( \";s:105:\"<b ");

    echo(
"<b>This part is executed every 10 seconds</b><br>");
    echo(
"This is test for data serialization<br>");
    echo(
"\" quote ' apos \n new line \t tab ( ut__\";s:105:\"<b Thi )<br>");
    echo(
date("H:i:s")."<br>");
   
}

echo(
"<b>This part is executed every time</b><br>");
echo(
date("H:i:s")."<br>");

var_dump($test_variable);

?>