Đang chuẩn bị liên kết để tải về tài liệu:
PHP 5/MySQL Programming- P51

Không đóng trình duyệt đến khi xuất hiện nút TẢI XUỐNG

PHP 5/MySQL Programming- P51: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 | This page intentionally left blank C H A P T E RJ Writing Programs ith Objects Object-oriented programming sometimes abbreviated as OOP is an important development in programming languages. Some languages such as Java are entirely object oriented and require an intimate understanding of the object-oriented paradigm. PHP in keeping with its easygoing nature supports a form of object-oriented programming but does not require it. In this chapter you learn what objects are and how to build them in PHP. Specifically you learn how to Use a custom class to build enhanced Web pages Design a basic class of your own Build an instance of a class Leverage inheritance encapsulation and polymorphism Create properties and methods in your classes 230 PHP 5 MySQL Programming for the Absolute Beginner Introducing the SuperHTML Object Back when I used to program in Perl before PHP existed I really liked a feature called cgi.pm. This was a module that simplified server-based programming. One of my favorite things about the module was the way it allowed you to quickly build Web pages with function calls. Once I understood how to use cgi.pm I was creating Web pages with unbelievable speed and ease. PHP doesn t have this feature built in so I decided to make a similar object myself using the object-oriented paradigm. Throughout this chapter you see the object being used then you ll learn how to build it and modify it for your own purposes. As you look at the SuperHTML object you should think of it at two levels First ignore the inner workings of the object and learn how to use it. There s a lot to this class and it has a lot of potential to improve your PHP programming. Second examine how it was built. This comes after you ve played with the object for a while. There s no doubt you ll have some ideas on how to improve it. Once you understand how objects work in PHP you ll be able to build even more-powerful objects on your own. Building a Simple Document with SuperHTML The SuperHTML .

TÀI LIỆU LIÊN QUAN
Đã 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.