I am sure this has been done, but a search with google and several code repositories, including phpbuilder's http://www.phpbuilder.com/snippet/ , has yet to yield a good script which can take my phpcode and print it to the screen. I have seen sites which show the source code, but usually this is just the phpfile not parsed.
I am wanting to write a php script which will generate another php script script using the variables supplied in the running of the script.
Functions:
addslashes(), htmlspecialchars() and htmlentities() do not seem adequate.
Found:
http://ww3.net/files/php/php_generator.html
but the result was not valid php and did not run.
Many thanks!
Tim
PS - If curious, this is for a project where I can take my current php pages for interfacing with a MySQL database and use them as a template to automatically generate pages for other databases.