Hudzilla.org - the homepage of Paul Hudson
Contents > Wish List | Report Bug | About Me ]

16     Miscellaneous topics

This is NOT the latest copy of this book; click here for the latest version.

I have to admit that I hate the idea of a "miscellaneous" chapter as much as the next person - surely all parts of PHP fit nicely together into groups of associated functionality? Well, no - although the majority of this book is split up nicely into related sections, there are several parts that simply do not relate to anything else close by or deserve their own section to give them justice.


Chapter contents

16.1. Process control
16.1.1. Taking control of PHP: pcntl_signal()
16.1.2. Timing your signals: pcntl_alarm()
16.1.3. Getting into multiprocessing: pcntl_fork(), pcntl_waitpid(), and pcntl_wexitstatus()
16.1.4. Duplication of resources when forking
16.1.5. The third parameter to pcntl_waitpid()
16.1.6. Event-driven child termination
16.1.7. Other ways to evaluate pcntl_waitpid()'s return value: pcntl_wifexited(), pcntl_wifsignaled(), pcntl_wifstopped(), pcntl_wtermsig(), and pcntl_wstopsig()
16.1.8. Running programs in the current process space: pcntl_exec()
16.1.9. Piping between processes: proc_open() and proc_close()
16.2. POSIX functions
16.2.1. Error handling: posix_get_last_error() and posix_strerror()
16.3. The Standard PHP Library
16.4. Reflection
16.5. Browser detection
16.6. Arbitrary-precision mathematics
16.7. Spellchecking and text matching
16.7.1. Calculating similarity of words: similar_text()
16.8. Templates
16.8.1. Templates ABC
16.8.2. How do they work?
16.8.3. When not to use templates
16.8.4. Writing your own
16.9. Summary
16.10. Exercises
16.11. Further reading
16.12. Next chapter



<< 15.15 Next chapter   16.1 Process control >>
Table of Contents
Want to see this stuff in print? PHP in a Nutshell takes the core topics covered here, adds in thousands of edits from the editorial team and myself, and combines them to make an unbeatable reference for PHP programmers at all levels.



My latest book has hundreds more tips on how to use PHP, Apache, and MySQL, plus Perl, Python, shell scripts, performance tuning, and more!



Top-right shadow
 
Bottom-left shadow Bottom shadow

Comments from other readers
Be the first to add a comment to this chapter!



Add comment
Please note that by posting a comment here you are committing it to the public domain. This is important so that others can make use of your code themselves, and also so that I can incorporate helpful notes directly into the main text. Comments are limited to 2000 characters in length.

If you are reporting an error in the content, please tell me directly.

Your name/email address:
Your comment:
 
Now, in order to verify that you're a real person, please answer this simple question: what is six plus zero?
The answer is:
(please write in
numbers, eg 19)


Top-right shadow
 
Bottom-left shadow Bottom shadow