Home › Forums › Back End › Custom CMS for PHP › Re: Custom CMS for PHP
March 4, 2010 at 8:18 am
#72000
JamesDuncombe
Member
Well, I suppose one way of doing it would be to look at how other systems work like WordPress. I don’t mean copy it but study their code, understand how they do it etc.
Obviously WordPress is only one example, there are many others out there. In fact any PHP based system with upgrade options in it would probably give you an idea.
As for the auto database install thing you could use MySQL’s SHOW CREATE TABLE syntax to give you the SQL for re-creating the table. I.e.:
Code:
SHOW CREATE TABLE ‘my-table’
That would print out the structure of the table then you could use a PHP script to push that to the database. Obviously this is for MySQL.
Hope that helps a little,
Cheers,
James