Новые книги

Quick Glance Guide

Finding information you need is not always easy. This short index provides a list of common tasks discussed inside this book. Browse the table of contents or index for detailed listings and consult the specified chapter for in-depth discussions about each subject.
Master Android from first principles and begin the journey toward your own successful Android applications!

Dear Reader,

First, welcome to the world of Android! We’re entering a new era of mobile application development, one marked by open platforms and open source, to take ‘walled gardens’ and make them green houses for any and all to participate in. Android is relatively easy for developers, and I believe that this innovation will help generate a large ecosystem of developers and consumers within a very short time. This means that budding developers such as yourself will have many opportunities to design and build your own applications and you’ll have a huge and hungry customer base.

Second, welcome to the book! Its purpose is to start you on your way with building Android applications, and to help you master the learning curve. Android is already a rich framework, comparable in many ways to the richness Android of desktop Java environments. This means that there is a lot of cool stuff for you to pick up along your journey in order to create the slickest, most useful apps Android you can imagine.

The source code for the code samples in this book is all available from the Apress site, so you can stay as hands-on and practical as you like while I introduce you to the core of Android, and invite you to experiment with the various classes and APIs we’ll be looking at. By the time you’ve finished this book, you’ll be creating your own Android applications and asking yourself what your next great application will be…!

Enjoy!

Mark Murphy

Startup и Shutdown-Функции

Учебник РНР
Назад Вперёд

Глава 38. Startup и Shutdown-функции

Startup и shutdown-функции могут использоваться для инициализации и деинициализации ваших модулей. Как сказано ранее в этой главе (см. описание блока дескриптора Zend-модуля), имеются события старта/startup и выключения/shutdown глобального уровня, уровня модуля и уровня запроса.

Функции глобального старта и вызываются однократно при старте PHP; аналогично и функции глобального выключения вызываются однократно при выключении PHP. Заметьте, что они действительно вызываются один раз, а не при создании нового процесса Apache!

Функции старта и выключения модуля вызываются, когда модуль загружается и нуждается в инициализации; функции старта и выключения запроса вызываются всякий раз при обработке запроса (что означает выполнение файла).

Для динамических расширений, модуля и и запроса startup/shutdown-события происходят одновременно.

Объявление и реализация этих функций может выполняться макросами; см. ранее раздел "объявление блока Zend-модуля".


Назад Оглавление Вперёд
Информация выполнения ВверхВызов пользовательских функций