Hello
I'm developing own CMS and i want to implement functionality to dynamically include existing PHP script which are located on the server.
there is variable called $page_content which contains page contents including HTML and JS code, also it contains some text recognised by regex, recognised text is then processed and replaced with desired dynamically created data. I also would like to trigger including new scripts by using that regex mechanism but here is a problem because regex recognition is solved by function and it seems that if i do "include" or "require" inside of function included script is limited by function variable scope so i can't get behaviour i need.
What should i do to make things works as i want, i mean that i can make bigger use of these dynamically included scripts.
Thanks in advance MTH