Thanks for the class, its pretty useful if you need to know quickly how many tables are within a database and also create a zip in which you could probably send the data to a trusted source via email.
I did just want to add a note that the tmp folder that is included within the script within the toZip function ($filename = 'tmp/BeanAPP' . '.zip';) is not included so this may fail first time if the users are not aware of it.
Also I am just a beginner so I am probably missing something important here but can I ask why you unset the variables $fields and $properties?
When those variables have been unset the script cannot identify $fields and fields from the tables do not get added to the fields variable for the text file.
Also just as an aside, for some reason using mysql_connect is discouraged as mysqli offers more functionality and PDO is another alternative. Using mysql_connect should work, but in my PHP version (5.3.2) it does not.
Thanks again, Darren.
|2012-12-05 11:19:44 - In reply to message 1 from Darren Conyard|
|thanks for your reply mate.|
i made a mistake writing the tmp.. its /tmp/ need to be used in a linux so
when you say about the unsets i will look closer to see whats going on.
now the mysql_ i didnt know. because i still use a old php version and i can use mysql_, but you can change for mysqli or any other just by yourself.
thank you for the feedback.
i have an extension for this class to create the generic cruds for each bean.
i will try to remodel using pdo on everything.
|2012-12-06 13:23:48 - In reply to message 2 from Marcus Brasizza|
Thanks for the reply. I did go through and change the the mysql_connect statements to mysqli_connect statements and it works just fine. Maybe I should have told you that part in the previous message!
Thanks for the class