|
Posted by Lorenzo Bettini on 01/15/07 15:27
Carl Pearson wrote:
> Lorenzo Bettini wrote:
>> is there any already existing framework that starting from a mysql table
>> structure generates the php code to generate that table structure?
>>
>
> <semantic mode>
> It wouldn't actually *be* PHP code, but MySQL code that generates the
> structure. PHP would just be calling its various MySQL functions to
> accomplish the task. Though true, it would be PHP code that would have
> to extract the data returned by the MySQL calls.
> </semantic mode>
>
> That being said, for freeware you could try
> http://sourceforge.net/projects/phpmydoc
>
> But it's kinda old, not sure if it works. I fiddled with it and
> couldn't get past the welcome screen, it had a funny if based on a var
> that only exists in the if, and the form generated in the welcome screen
> had no target for the POST. Didn't give it too hard a look, but since
> the code is from '02, some of it may be deprecated to the version of PHP
> I'm on (5.2.0)
yes, your semantic explanation is correct: I need to generate php code
that calls specific mysql functions to recreate the structure of a mysql
table.
phpmydoc seems to only generate documentation, as far as I understand...
the generated php code I have in mind would be used, e.g., in an
installation procedure to generate (or, more interestingly, update) the
tables of the database.
Lore
--
Lorenzo Bettini, PhD in Computer Science, DSI, Univ. di Firenze
ICQ# lbetto, 16080134 (GNU/Linux User # 158233)
HOME: http://www.lorenzobettini.it MUSIC: http://www.purplesucker.com
BLOGS: http://tronprog.blogspot.com http://longlivemusic.blogspot.com
http://www.gnu.org/software/src-highlite
http://www.gnu.org/software/gengetopt
http://www.gnu.org/software/gengen http://doublecpp.sourceforge.net
[Back to original message]
|