Save/restore variable environment

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Michael Urspringer

    Save/restore variable environment

    Hello!

    I have the following problem:

    At the beginning of my website based on b2Evolution I include a
    statistic tool (TrackPro) with the follwowing commands:

    session_start() ;
    include 'tpro.php';

    In the file "tpro.php" some variables are used. These variables seem
    to be used by the b2Evolution files also and therefore they do disturb
    each other.

    Is there a way to save the content of all variables before entering
    the "tpro.php" (or at its beginning) and to restore all content
    afterwards so that b2Evolution finds the same environment than before?

    Sorry if this is a stupid question but I am not a PHP programmer and
    only can do some small adjustements in the code.

    Thanks for your help!

    Michael
Working...