Login   Register  
PHP Classes
elePHPant
Icontem

File: test_04_quotes.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Dragan Bo?njak  >  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: 2007-03-28 06:09
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);

?>