Hi To All..
How to create cms(Content Management Site) without using database in php...

Thanks In Advance...

Member Avatar for diafol

I don't understand why you wouldn't want to use a DB, but anyway, you can store your stuff in files.

Use file_get_contents() to read the whole file into a string. Ouput the string to a textbox or online text editor of your choice (e.g. Spaw). Make your changes and save the results using file_put_contents(). Simple really.

Of course you need to build a form to hold said editor along with other form fields, e.g. filename, append or overwrite radiobuttons, etc.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.