PHP Classes

File: test.php

Recommend this page to a friend!
  Classes of zinsou A.A.E.Moïse   Persistent PHP Superglobals Array Maker   test.php   Download  
File: test.php
Role: Example script
Content type: text/plain
Description: example script
Class: Persistent PHP Superglobals Array Maker
Create array variables that act like superglobals
Author: By
Last change: change wrong example file
Date: 6 years ago
Size: 662 bytes
 

Contents

Class file image Download
<?php
require('PersistentGlobalsMaker.php');


// pgm_exists('papiLikeSession')?pgm_start('papiLikeSession'):pgm_create('papiLikeSession');
pgm_check_and_start('papiLikeSession');
echo
'<pre>';
var_dump($papi);

$riskedpapi[][]=0;
$riskedpapi[][]='another';
$riskedpapi[]='this is a session like global';
$riskedpapi[]='testabort';
$papi->mergewithexisting($riskedpapi);

// $papi->abort();
// PersistentGlobalsMaker::destroy('papi');

pgm_check_and_start('Session');
var_dump($Session);
$Session['[4][5]']='papi puncho';
$Session['%[4][5][]%']='papi puncho';



var_dump(PersistentGlobalsMaker::destroyOld(null,30));
echo
'<pre>';
?>