PHP 5/MySQL Programming- P61

PHP 5/MySQL Programming- P61:computer programming has often been seen as a difficult and arcane skill. Programming languages are difficult and complicated, out of the typical person’s reach. However, the advent of the World Wide Web has changed that to some extent. It’s reasonably easy to build and post a Web page for the entire world to see. The language of the Web is reasonably simple, and numerous applications are available to assist in the preparation of static pages | 278 PHP 5 MySQL Programming for the Absolute Beginner FIGURE This is the standard look of in the Odysseytheme. Your code might vary from what you see here because each theme has a different code fragment for each type of element. The actual details don t matter as much as the general concept. The notable thing about the code fragment is the lack of any actual content. This is the CMS system hallmark. Rather than displaying any actual values the code fragments in a theme describe how to display a certain type of text. Notice the placeholders title and content. These are of course PHP variables that the actual title and content elements will replace. You can modify any of the HTML theme pages as long as you don t change the name of any of those pages. Likewise you can replace all of the graphics with your own but don t use different names because the system cannot find them otherwise. Begin with simple changes like color changes and new graphics get more sophisticated as you begin to understand the file structure. Introducing simpleCMS PHP-Nuke is incredibly powerful but it s overkill for many personal Web sites. It was originally designed to be used as a news site so it s heavily oriented toward news delivery and online forums. The incredible power of the PHP-Nuke system and others like it can also make them very intimidating for new programmers. Also I don t love the coding style used to present the resulting pages. PHP-Nuke relies heavily on HTML tables as a formatting tool rather than the positionable CSS elements I prefer. I wanted to create a lightweight content management system that provided many of the core features a more complex system provides but be easier to build and maintain. I actually created two related CMSs which I describe in the rest of this chapter. The simpleCMS system is easy to use and modify and adds tremendous flexibility to your Web system. You don t need to learn a single new command in PHP or HTML but you do need to .

Không thể tạo bản xem trước, hãy bấm tải xuống
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.