PHP is an acronym for PHP Hypertext Preprocessor. It is an open-source programming language used mainly for developing server-side applications and dynamic web content (See netcraft PHP usage page). If you visit php.net documentation page, you will get A-Z PHP programming and API references along with sample code. However, it lacks the PHP programming techniques to develop robust PHP applications. This book is an excellent practical reference for learning and creating world-class PHP applications. It explains everything systematically from HTML and Ajax to code generation.
Jack Herrington has done an extraordinary work to put together PHP hacks. Jack has tons of experience in the cutting edge of web development. His ideas and techniques will kick-start you to write your own PHP applications in minutes (no I am not kiddingÃ¢â‚¬Â¦).
The book is divided into ten chapters:
Installation and Basics
Without PHP you can not type programs and execute them or use all those programs presented in book. Therefore, this chapter explains how to install PHP on Windows, Mac OS X and Linux/UNIX systems under Apache and IIS. It also explains how to install or access the vast PEAR source code repository to find cool functionality to add to your PHP applications. PEAR is like CPAN modules.
Most of us love to use Gmail, because of its superb user interface. This chapter provides user interface hacks, that you can perform with HTML using PHP. For example, building tabs based user interface and boxes to give a professional look to your PHP application (to be frank when I saw this first chapter in bookstore I immediately pick the book).
Well first, I thought PHP is just a scripting language for HTML or database driven sites. However, after reading this chapter I truly come to know powers of PHP graphics capabilities. This chapter explains how to use the GD graphics API in PHP to create thumbnails of your images, create dynamic graphs from your data and so on. An excellent chapter I must agree. For example, currently I am working on poll software for this web site and now I know how to generate those nice graphs 🙂 Even you can access your iPhoto pictures with PHP.
Databases and XML
Generally, MySQL/XML is use for data storage. The hacks in this chapter will help you to develop code for database access and for your work with XML. It also provides the technique (or single class) that will talk to any database. It also covers other file format such as MS-Word and Excel to access data from PHP.
This chapter is all about application design. You will quickly learn how to create login system, shopping cart, formatting text (wiki like formatting), building ad redirector system, security, and roles, password management and many other practical application designs so on.
This chapter covers software engineering set of patterns of object structure and intraobject structure, which was adopted from building architecture and was smoothly applied to programming. The author follows Design Patterns book as reference. It provides solid architectural foundations, as well as sources of inspiration for your own code. It is a good read, IMPO.
Application testing is part of development. This chapter is all about testing your PHP code. It starts with unit tests, and then covers automatic generation of unit tests and other techniques. It also explains how to use robots to test your applications through the Web.
Well if you thought, PHP is only limited to web then think again. This chapter will take your PHP skills to your desktop. No matter what you use (Linux, Macintosh, Windows, or even PlayStation Portable (PSP)) you will see how to use PHP as UI tool to build GUI. You will learn to generate flash movies on fly, IRC web application, Search Google link graph and much more.
As a name suggest it is fun stuff to impress your friends. It covers creating of Google maps, building an MP3 server, uploading Wikipedia to your PlayStation Portable (PSP) and so on. Excellent stuff if you are a hacker.
With this book, I got couple of good ideas for building graphs for poll system and creating secure login and session system for custom application. The credit goes to authors for putting all cutting edge of web development information in this book. It really offers more than solutions. A must read for all of new and intermediate PHP programmers, it will encourage you to take the ideas presented here and extend them, hacking them further to create world class PHP application.
- Book title: PHP Hacks Tips & Tools for Creating Dynamic Websites
- Author: Jack Herrington
- Publisher: O’Reilly
- Pub Date: December 2005
- ISBN: 0-596-10139-2
- Pages: 468
- Level of experience needed: Beginners/Intermediate web development
- Who will find useful: Programmer/Web developers
- Additional goodies included (such as CDROM) : No
- Sample chapters:
- Hack 33: Access Your iPhoto Pictures with PHP (PDF)
- Hack 49: Create Excel Spreadsheets Dynamically (PDF)
- Hack 55: Fix the Double Submit Problem (PDF)
- Hack 90: Read RSS Feeds on Your PSP (PDF)
- Hack 95: Create Custom Google Maps (PDF)
- Our rating: ***** (5/5)
- Purchase online at Amazon
|Category||List of Unix and Linux commands|
|Firewall||Alpine Awall • CentOS 8 • OpenSUSE • RHEL 8 • Ubuntu 16.04 • Ubuntu 18.04 • Ubuntu 20.04|
|Network Utilities||dig • host • ip • nmap|
|OpenVPN||CentOS 7 • CentOS 8 • Debian 10 • Debian 8/9 • Ubuntu 18.04 • Ubuntu 20.04|
|Package Manager||apk • apt|
|Processes Management||bg • chroot • cron • disown • fg • jobs • killall • kill • pidof • pstree • pwdx • time|
|Searching||grep • whereis • which|
|User Information||groups • id • lastcomm • last • lid/libuser-lid • logname • members • users • whoami • who • w|
|WireGuard VPN||Alpine • CentOS 8 • Debian 10 • Firewall • Ubuntu 20.04|