The Web Wizard's Guide to PHP
Title: The Web Wizard's Guide to PHPAuthor: David A. LashPublisher: Addison-WesleyISBN: 0-321-12174-0
If you're looking to learn PHP or to teach a course on PHP, check out The Web Wizard's Guide to PHP by David Lash. This is an excellent book for learning PHP, even if you have no programming skills. If you're like me and have experience in another language, such as Perl, you'll find that Lash's book makes it easy to rapidly get up to speed in PHP. Although it's only a little over 200 pages in length, it's packed with all you need to get started with PHP and offered at a fair price.
The book explains PHP variables, how to pass them between web pages and PHP scripts and how to build expressions for pattern matching and data extraction. It covers the basics of arrays and associative arrays, and it shows practical ways to incorporate them into web design. It also explains the syntax for script flow controls (i.e., "if" and "else" statements, "for" and "while" loops) and provides useful examples of each. As for more advanced topics, Lash presents them in an approachable manner, including opening, reading, writing and closing files. He also goes over creating and using PHP sessions and cookies. The last chapter in this eight-chapter book provides basic instructions on writing PHP scripts to interface with a MySQL database and some related examples. Finally, several exercises are offered at the end of each chapter to reinforce concepts in depth.
When I spoke with Lash, he mentioned he took special care in preparing the example scripts in his book. He wanted to provide real-life examples that were clean and to the point. They involve order forms, inventory look-ups and some typical web functions, such as user comment forms that e-mail a webmaster. Lash, an adjunct professor at DePaul University in Chicago, said that he wanted the example scripts to be intermingled among the text to make learning PHP easier. "My students like that they can work through the examples without having to wade through a lot of text before being able to apply the concepts presented."
Good advice on coding style and documenting accompanies many of the examples, as do warnings concerning common mistakes that newcomers to PHP typically make and how to troubleshoot them. "Teaching evening courses to working adults at a liberal arts school definitely helped prepare me for writing this book", says Lash, who is also a software engineer at Lucent. Because of his experience working with non-technical students, he makes no assumptions about the reader's background in his book except that the reader has some familiarity with HTML. But this is not required when used in a class room setting. As such, he introduces PHP functions in a manner that shouldn't lose the beginner nor bore the more advanced programmer.
Because the book was made primarily for use in the classroom, it has a schoolbook feel to it. While you may find this book to be reminiscent of your middle-school days, please do not think this is a book for teenagers. "The book strives to have some of the easy-to-use qualities of those Visual computer books but with solid explanations and real-world examples useful to classrooms and software professionals", says Lash. "I wanted to provide simple, straightforward explanations with useful examples and syntax descriptions." The playful graphics and the color-coded scripts, which add to the schoolbook style, both disarm readers who have never learned a programming language and make studying the code easier. To further assist in picking apart the code presented in the book, incidentally, Lash provides line-by-line explanations of each script excerpt.
If you would like to make use of Lash's book for teaching a web design course, you can find instructor aides on Addison-Wesley's site for their Web Wizard series. Lash says, "I put in a lot of extra work on the course materials because I knew that I was going to use them for my classes."
The site provides PowerPoint slides (which can be opened in OpenOffice, by the way), sample tests, class handouts and instructor tips. To get access to these resources, including answers to the test questions and the exercises at the end of each chapter, you need to talk to an Addison-Wesley sales representative about setting up a free instructor account. Go to the web site mentioned above for contact information. By the way, several other books in Addison-Wesley's Web Wizard series (listed on the site) may be of interest to you, including another book by David Lash on Perl and CGI.
Practical Task Scheduling Deployment
July 20, 2016 12:00 pm CDT
One of the best things about the UNIX environment (aside from being stable and efficient) is the vast array of software tools available to help you do your job. Traditionally, a UNIX tool does only one thing, but does that one thing very well. For example, grep is very easy to use and can search vast amounts of data quickly. The find tool can find a particular file or files based on all kinds of criteria. It's pretty easy to string these tools together to build even more powerful tools, such as a tool that finds all of the .log files in the /home directory and searches each one for a particular entry. This erector-set mentality allows UNIX system administrators to seem to always have the right tool for the job.
Cron traditionally has been considered another such a tool for job scheduling, but is it enough? This webinar considers that very question. The first part builds on a previous Geek Guide, Beyond Cron, and briefly describes how to know when it might be time to consider upgrading your job scheduling infrastructure. The second part presents an actual planning and implementation framework.
Join Linux Journal's Mike Diehl and Pat Cameron of Help Systems.
Free to Linux Journal readers.Register Now!
- SUSE LLC's SUSE Manager
- My +1 Sword of Productivity
- Murat Yener and Onur Dundar's Expert Android Studio (Wrox)
- Managing Linux Using Puppet
- Non-Linux FOSS: Caffeine!
- Doing for User Space What We Did for Kernel Space
- SuperTuxKart 0.9.2 Released
- Google's SwiftShader Released
- SourceClear Open
- Parsing an RSS News Feed with a Bash Script
With all the industry talk about the benefits of Linux on Power and all the performance advantages offered by its open architecture, you may be considering a move in that direction. If you are thinking about analytics, big data and cloud computing, you would be right to evaluate Power. The idea of using commodity x86 hardware and replacing it every three years is an outdated cost model. It doesn’t consider the total cost of ownership, and it doesn’t consider the advantage of real processing power, high-availability and multithreading like a demon.
This ebook takes a look at some of the practical applications of the Linux on Power platform and ways you might bring all the performance power of this open architecture to bear for your organization. There are no smoke and mirrors here—just hard, cold, empirical evidence provided by independent sources. I also consider some innovative ways Linux on Power will be used in the future.Get the Guide