Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Custom CMS for PHP Re: Custom CMS for PHP

#72000

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