PravusMentis
03-31-2002, 11:54 PM
Heres the deal most of my work is dealing with websites and intranets etc. I use PHP, HTML, MySQL, Javascript etc. Now I make lots of pages and it gets tiring repeatedly writing things such as <HTML>, <HEAD> and other required tags.
What I want to do is create a script that when executed gives me several options
1. PHP Template
2. PHP/MySQL Template
3. HTML Template
And from there an IF $variable will be used to call up the appropriate function which'd be the default code commonly used for such pages. For the MySQL Template i'd also have several inputs for database, name, and password which'd be variables also.
Question is after all that is done how can I get it to print it out into a text editor?
I can easily do such a script for a website to just echo out the final result but I want it in this case to print out the final results in a text editor so i same some time writing out tags.
Next which language should I use for such a program? I'm fine in PHP, and semi proficient in C++ along with Perl.
[ 31 March 2002: Message edited by: PravusMentis ]
What I want to do is create a script that when executed gives me several options
1. PHP Template
2. PHP/MySQL Template
3. HTML Template
And from there an IF $variable will be used to call up the appropriate function which'd be the default code commonly used for such pages. For the MySQL Template i'd also have several inputs for database, name, and password which'd be variables also.
Question is after all that is done how can I get it to print it out into a text editor?
I can easily do such a script for a website to just echo out the final result but I want it in this case to print out the final results in a text editor so i same some time writing out tags.
Next which language should I use for such a program? I'm fine in PHP, and semi proficient in C++ along with Perl.
[ 31 March 2002: Message edited by: PravusMentis ]