Think about this geez, how the heck could you write an application that writes applications for you???
Go read the Dreamweaver MX PHP 'tutorials' on MacroMedia.com, they are GARBAGE. The code it 'generates' is simply a few base templates available through extensions, it isn't actually generating code.
Note to mention look at the example code, its GARBAGE, entirely unorganized and ugly and not even up-to-date for PHP 4.
The template functionality is extremelly limited, and not suitable for anything more than small-scale projects. It's limited to simple templates and form processing. Anyone who knows HTML already can easily figure out how to process a CGI form or to include() a header and footer across the entire site, thats nothing new.
Don't forget also that PHP is MEANT to be easy to learn and easy to pick-up for people. It's a scripting language, it sacrafices speed / efficiency / flexability for ease of use and short development time.
If you want to learn a real programming language that you can be sure will never be replaced, learn C or C++, Perl is another good one.
Sheesh, don't you think if it was this possible and this easy to make something to generate whole coded applications for you C or C++ would have a pretty GUI 'code-generator' for you by now? The language has only been around for, what, 30 YEARS now?!?
Nothing will ever replace true logic programming, problem solving and application design, the only ones of us that need to worry about being replaced by Dreamweaver are the ones who ask questions like ' how do I find a string in another string ' without READING THE FING MANUAL FIRST or who post every single parse error they come across to teh boards asking for HELP! URGENT!
Learn to fricking debug your own code and problem solve on your own for petes sake!