There is a samopisny framework with a single entry point, CNC, routing and other things. There was a need for one of the controllers to run a third-party script in this case, Adminer.php (gui to manage mysql analog phpmyadmin).

At connection of this business errors Cannot redeclare functionname() because there obviously functions are used globally with the same names.

Is it possible to somehow isolate (create a local scope) for this script from everything else using PHP?

  • one
    namespaces will help? - Dmitriy
  • Duck in general, then this script can not be isolated from the framework? Does the firework in this case do something useful at all? or just run the script? If it just starts, and does nothing on its own, then at the level of xxess, immediately give control to this script and not to the framework. - teran am

0