accessing other php script resources/variables -
well, searching while , couldn't find solution or workaround accessing other php script.
i have script running in cli, u guessed socket server, , of course have variables, objects, arrays, etc...
i need debug file without need of printing/ echoing variables script itself, know can kinda messy , long run end increasing file size commented , unwanted line of codes, took time clean later on. , plus need make sort of command line interface server in future.
so question there way read or debug script variables script running in cli instance? ( can included instance other values/variables) in addition, can run specific function outside of script? use reflections ?
i tried _session cannot access while server running.
in c# or java can.
i don't know if it's possible, suggest other solution "inspecting" variables in running script. use db store logs current operation , it's variables. managed config written in db write logs or important ones, disable log output changing 1 row in db.
Comments
Post a Comment