The PHP Anthology: 101 Essential Tips, Tricks & Hacks
Davey Shafik; Matthew Weier O'Phinney; Ligaya Turmelle; Harry Fuecks
Lingua: inglese
Editore: Sitepoint Pty Ltd, 2007
- Brossura
- Usato

Da: ThriftBooks-Atlanta, AUSTELL, GA, U.S.A.ThriftBooks-Atlanta
Venditore AbeBooks dal 24 marzo 2009
Condizione: Usato - Buono
EUR 7,63
Quantità: 1 disponibili
Aggiungi al carrelloDescrizione dell’articolo da parte del venditore
Pages can have notes/highlighting. Spine may show signs of wear. ~ ThriftBooks: Read More, Spend Less.
Codice articolo G0975841998I3N00
- Titolo
- The PHP Anthology: 101 Essential Tips, Tricks & Hacks
- Autore
- Davey Shafik; Matthew Weier O'Phinney; Ligaya Turmelle; Harry Fuecks
- Editore
- Sitepoint Pty Ltd
- Anno di pubblicazione
- 2007
- Condizione
- Good
- Sovraccoperta
- No Jacket
- Rilegatura
- Paperback
- Lingua
- inglese
- ISBN 10
- 0975841998
- ISBN 13
- 9780975841990
- Edizione
- seconda edizione
- Peso dell'articolo
- 2,55 libbre
The PHP Anthology: 101 Essential Tips, Tricks & Hacks, 2nd Edition is a collection of powerful PHP 5 solutions to the most common programming problems.
Featuring best-practice code and a commonsense approach to development, this book includes coverage of:
The question and answer format will allow you to to quickly find and reference any of the 101 solutions, saving you hours of Internet research or painful trial & error. All solutions are fully explained and the ready-to-use code is available for download.
From the Publisher
"A comprehensive collection of ready-to-use PHP solutions!"
- Over 100 easy-to understand PHP tips, tricks and hacks.
- Save hours of time with "copy and paste" ready code.
- All solutions are fully explained by five PHP gurus.
- Learn the very latest object oriented PHP techniques.
- And so much more...
The chapters are grouped to cover the major areas of PHP. Inside, you'll find solutions to the most common challenges that PHP developers face.
What Slashdot.org Says
"The chapters on error handling and access control are alone worth the price of the book"
"Riassunto" può appartenere a un’altra edizione di questo titolo.
Contenuti
* Who Should Read this Book?
* Whats Covered in this Book?
* Running the Code Examples
* The Books Web Site
o The Code Archive
o Updates and Errata
* The SitePoint Forums
* The SitePoint Newsletters
* Your Feedback
* Conventions Used in this Book
o Code Samples
o Tips, Notes, and Warnings
1. Introduction
* Where do I get help?
* What is OOP?
* How do I write portable PHP code?
* Summary
2. Using Databases with PDO
* What is PDO?
* How do I access a database?
* How do I fetch data from a table?
* How do I resolve errors in my SQL queries?
* How do I add data to, or modify data in, my database?
* How do I protect my web site from an SQL injection attack?
* How do I create flexible SQL statements?
* How do I find out how many rows Ive touched?
* How do I find out a new INSERTs row number in an autoincrementing field?
* How do I search my table?
* How do I work with transactions?
* How do I use stored procedures with PDO?
* How do I back up my database?
* Summary
3. Strings
* How do I output strings safely?
* How do I preserve formatting?
* How do I strip HTML tags from text?
* How do I force text to wrap after a certain number of characters?
* How do I perform advanced search and replace operations?
* How do I break up text into an array of lines?
* How do I trim whitespace from text?
* How do I output formatted text?
* How do I validate submitted data?
* Summary
4. Dates and Times
* How do I use Unix timestamps?
* How do I obtain the current date?
* How do I find a day of the week?
* How do I find the number of days in a month?
* How do I create a calendar?
* How do I store dates in MySQL?
* How do I format MySQL timestamps?
* How do I perform date calculations using MySQL?
* Summary
5. Forms, Tables, and Pretty URLs
* How do I build HTML forms with PHP?
* How do I display data in a table?
* How do I display data in a sortable table?
* How do I create a customized data grid?
* How do I make pretty URLs in PHP?
* Summary
6. Working with Files
* How do I read a local file?
* How do I use file handles?
* How do I modify a local file?
* How do I access information about a local file?
* How do I examine directories with PHP?
* How do I display PHP source code online?
* How do I store configuration information in a file?
* How do I access a file on a remote server?
* How do I use FTP from PHP?
* How do I manage file downloads with PHP?
* How do I create compressed ZIP/TAR files with PHP?
* How do I work with files using the Standard PHP Library in PHP 5?
* Summary
7. Email
* How do I send a simple email?
* How do I simplify the generation of complex emails?
* How do I add attachments to messages?
* How do I send HTML email?
* How do I mail a message to a group of people?
* How do I handle incoming mail with PHP?
* How can I protect my site against email injection attacks?
* Summary
8. Images
* How do I specify the correct image MIME type?
* How do I create thumbnail images?
* How do I resize images without stretching them?
* How can I put together a simple thumbnail gallery?
* How do I extract EXIF information from images?
* How do I add a watermark to an image?
* How do I display charts and graphs with PHP?
* How do I prevent the hotlinking of images?
* How do I create images that can be verified by humans only?
* Summary
9. Error Handling
* What error levels does PHP report?
* What built-in settings does PHP offer for error handling?
* How can I trigger PHP errors?
* How do I implement a custom error handler with PHP?
* How do I log and report errors?
* How can I use PHP exceptions for error handling?
* How do I create a custom Exception class?
* How do I implement a custom exception handler with PHP?
* How can I handle PHP errors as if they were exceptions?
* How do I display errors and exceptions gracefully?
* How do I redirect users to another page following an error condition?
* Summary
10. Access Control
* How do I use HTTP authentication?
* How do I use sessions?
* How do I create a session class?
* How do I create a class to control access to a section of the site?
* How do I build a registration system?
* How do I deal with members who forget their passwords?
* How do I let users change their passwords?
* How to do I build a permissions system?
* How do I store sessions in a database?
* Summary
11. Caching
* How do I prevent web browsers from caching a page?
* How do I control client-side caching?
* How do I examine HTTP headers in my browser?
* How do I cache file downloads with Internet Explorer?
* How do I use output buffering for server-side caching?
* How do I cache just the parts of a page that change infrequently?
* How do I use PEAR::Cache_Lite for server-side caching?
* What configuration options does Cache_Lite support?
* How do I purge the Cache_Lite cache?
* How do I cache function calls?
* Summary
12. XML and Web Services
* Which XML technologies are available in PHP 5?
* Why should I use PHPs XML extensions instead of PHP string functions?
* How do I parse an RSS feed?
* How do I generate an RSS feed?
* How do I search for a node or content in XML?
* How can I consume XML-RPC web services?
* How do I serve my own XML-RPC web services?
* How can I consume SOAP web services?
* How do I serve SOAP web services?
* How can I consume REST services?
* How can I serve REST services?
* Summary
13. Best Practices
* How do I track revisions to my projects code?
* How can I maintain multiple versions of a single codebase?
* How can I write distributable code?
* How can I document my code for later reference by myself or others?
* How can I ensure future changes to my code wont break current functionality?
* How can I determine what remains to be tested?
* Ive reviewed some of my old code, and its horrible. How can I make it better?
* How can I deploy code safely?
* Summary
Appendix
1. PHP Configuration
* Configuration Mechanisms
* Key Security and Portability Settings
* Includes and Execution Settings
* Error-related Settings
* Miscellaneous Settings
2. Hosting Provider Checklist
* General Issues
o Does the host support Linux and Apache?
o Does the host provide you with SSH access to the server?
o Is the host a reseller, or does it maintain servers itself?
o To what degree does the host overload the server?
o Whats the hosting providers policy on running scripts and programs from the command line?
o Does the host provide you access to cron, the Unix utility that allows you to schedule batch jobs?
* PHP-related Issues
o Can you see the output of phpinfo on the server you will actually be assigned to?
o Is PHP installed as an Apache module (not the CGI variant)?
o Is the Apache settingAllowOverride set to Options or All?
o Is PHP Safe Mode disabled?
o Check the upgrade policy of your host.
o Ask for a list of installed PHP extensions.
o Will PHP be available for use from the command line?
o Whats the hosts knowledge of PHP?
* Security Checklist
o Top Security Vulnerabilities
+ Cross-site Scripting (XSS)
+ Injection Flaws
+ Malicious File Execution
+ Insecure Direct Object Reference
+ Cross-site Request Forgery (CSRF)
+ Information Leakage and Improper Error Handling
+ Broken Authentication and Session Management
+ Insecure Cryptographic Storage
+ Insecu...
"Descrizione articolo" può appartenere a un’altra edizione di questo titolo.
ThriftBooks-Atlanta
AUSTELL, GA, U.S.A.
Venditore AbeBooks dal 24 marzo 2009
Tariffe di spedizione nazionale per U.S.A.
| Articolo | Da 4 a 8 giorni lavorativi | Da 4 a 8 giorni lavorativi |
|---|---|---|
| Primo articolo | EUR 0,00 | EUR 0,00 |
Metodi di pagamento
Descrizione dello Store
ThriftBooks is a fully independent seller of used books, having sold more than 160 million used and new books since we started in 2003. Each quality used book is sorted, graded, shelved and shipped by hand by our team of dedicated employees in our seven warehouses across the US. We have the best selection of books, in the right condition and format, at everyday low prices. We also have a dedicated, US-based Customer Service team, ranked in the top three by Newsweek for Best Customer Service in 2018 and 2019, so you can shop with confidence. We support and invest in our employees, appreciate and value our customers, and truly believe in the power of the written word to educate, energize, and engage readers of all ages and interests.…
Informazioni sull’azienda del venditore
Thrift Books Global, LLC
18300 Cascade Ave S, Ste 150
Seattle, WA U.S.A. 98188
Condizioni di vendita
We guarantee the condition of every book as it's described
on the Abebooks website. If you're dissatisfied with your
purchase (Incorrect Book/Not as Described/Damaged) or if the
order hasn't arrived, you're eligible for a refund within 30
days of the estimated delivery date. If you've changed your
mind about a book that you've ordered, please use the "Ask
bookseller a question link to contact us" and we'll respond
as soon as possible.
Diritto di recesso
Se sei un consumatore puoi recedere dal contratto in conformità con quanto segue. Per Consumatore si intende qualsiasi persona fisica che agisce per scopi estranei alla propria attività commerciale, imprenditoriale, artigianale o professionale.
Informazioni sul diritto di recesso
Diritto legale di recesso
Hai il diritto di recedere dal presente contratto entro 14 giorni senza fornire alcuna motivazione.
Il periodo di recesso scade dopo 14 giorni dal giorno in cui tu o una terza parte, diversa dal vettore e da te indicata, acquisisce il possesso fisico dell'ultimo bene o dell'ultimo lotto o pezzo.
Per esercitare il diritto di recesso, compila e invia elettronicamente una dichiarazione esplicita sul nostro sito Web, alla voce “I miei acquisti” nella sezione “Mio account”. Ti comunicheremo senza indugio una conferma di ricezione di tale recesso su un supporto durevole (ad es. via e-mail).
Per rispettare il termine di recesso, è sufficiente inviare la comunicazione relativa all'esercizio del diritto di recesso prima della scadenza del periodo di recesso stesso.
Effetti del recesso
In caso di recesso dal presente contratto, ti rimborseremo tutti i pagamenti ricevuti, compresi i costi di spedizione (ad eccezione dei costi supplementari derivanti dalla tua eventuale scelta di un tipo di spedizione diverso dal tipo meno costoso di consegna standard da noi offerto).
Potremo effettuare una detrazione dal rimborso per la perdita di valore dei beni forniti, qualora tale perdita sia il risultato di una manipolazione non necessaria da parte tua.
Eseguiremo il rimborso senza indebito ritardo e non oltre 14 giorni dal giorno in cui saremo informati della tua decisione di recedere dal presente contratto.
Il rimborso sarà effettuato utilizzando lo stesso mezzo di pagamento da te usato per la transazione iniziale, salvo che tu non abbia espressamente concordato altrimenti; in ogni caso, non dovrai sostenere alcun costo quale conseguenza di tale rimborso.
Possiamo trattenere il rimborso finché non avremo ricevuto i beni oppure finché non avrai fornito la prova di averli rispediti, a seconda di quale condizione si verifichi per prima.
Dovrai rispedire i beni o consegnarli a ThriftBooks-Atlanta, Dallas, Texas, U.S.A., senza indebito ritardo e, in ogni caso, entro 14 giorni dal giorno in cui ci hai comunicato la tua volontà di recedere dal presente contratto. Il termine è rispettato se rispedisci i beni prima della scadenza del periodo di 14 giorni. I costi diretti della restituzione dei beni saranno a tuo carico. Sei responsabile solo della diminuzione del valore dei beni risultante da una manipolazione diversa da quella necessaria per stabilire la natura, le caratteristiche e il funzionamento dei beni stessi.
Eccezioni al diritto di recesso
Il diritto di recesso non si applica a:
- La fornitura di giornali, periodici o riviste ad eccezione dei contratti di abbonamento; e
- La fornitura di contenuto digitale non fornito su un supporto materiale (ad es. su un CD o DVD), se al momento dell'invio dell'ordine hai accettato l'inizio dell'esecuzione e hai riconosciuto che non avresti potuto recedere una volta iniziata l'esecuzione.
Condizioni di spedizione
All domestic Standard and Expedited shipments are distributed from our warehouses by OSM, then handed off to the USPS for final delivery.
2-Day Shipping is delivered by FedEx, which does not deliver to PO boxes.
International shipments are tendered to the local postal service in the destination country for final delivery – we do not use courier services for international deliveries.