If you are a developer building a Web site with rich content, you might want to consider these solutions, including (a) a database for content, (b) a template system that separates the GUI from content, and (c) a user-friendly interface for maintaining data in the database. and (d) control over the final appearance of the generated page.
A very interesting solution that can provide all of the above is Yaapi, which is the acronym for your Article Application programming interface (Your article application programming Interface). It is a PHP class that provides built-in methods to access the content stored in the database. The management module is equipped with classes that help manage the data, and the API itself is powerful enough to handle most of the common tasks required by the Content management System (CMS).
To install and use YAAPI, you need a PHP-enabled Web server, such as Apache and, of course, PHP, as well as a MySQL database server. You can download a copy of the YAAPI and unzip it to a location in the root directory of the server.
You also need to create a MySQL database to accommodate the YAAPI data structure. Use the Yaapi.sql file in the source archive to create the database, then open the Yaapi configuration in the class constructor (article.class.php file) and update it with the name and access parameters used for that database.
Add content to add content to the database, you must use the YAAPI Management module on http://your-server/yaapi-root/admin/(replace "Your-server" with the name of the server that has the YAAPI installed, and replace the "Yaapi-root" with the Yaapi unzipped directory). You will use this management module to create (and delete) content categories, and then put the articles into these categories. Here is a summary of the fields you will encounter in this process:
Category: The category Chapter ID (section ID) of the article: if your article has two levels, use this parameter to define a second level. Title: Title author (Author): article author email (e-mail): Article author's email address permission (approved): Used to indicate whether the article has been "licensed" to display the flag Image: Optional image URL content associated with the article: the content of the article on the last item on the note: by inserting a delimiter in the text of the article, YAAPI can display your large piece of paper in several small pages. See the following example:
Introduction of article here
#intro #page 1 Content here #page #page 2 content here #page #page 3 content here #page #and so on ...
Don't forget to confirm after entering the article, because only the confirmed article can be retrieved with the API.
http://www.bkjia.com/PHPjc/531930.html www.bkjia.com true http://www.bkjia.com/PHPjc/531930.html techarticle If you are a developer who is building a Web site with rich content, you may want to consider these solutions, including (a) the database for content, (b) ...