The PHP Anthology: 101 Essential Tips, Tricks and Hacks
Lingua: inglese
Editore: Sitepoint, 2007
- Brossura
- Usato

Da: Anybook.com, Lincoln, Regno UnitoAnybook.com
Venditore AbeBooks dal 22 dicembre 1999
Condizione: Usato - Buono
EUR 3,31
Quantità: 1 disponibile
Aggiungi al carrelloDescrizione dell’articolo da parte del venditore
This is an ex-library book and may have the usual library/used-book markings inside.This book has soft covers. In good all round condition. Please note the Image in this listing is a stock photo and may not match the covers of the actual item,950grams, ISBN:9780975841990.
Codice articolo 8834740
- Titolo
- The PHP Anthology: 101 Essential Tips, Tricks and Hacks
- Autore
- Shafik, D et al
- Editore
- Sitepoint
- Anno di pubblicazione
- 2007
- Condizione
- Good
- Rilegatura
- Brossura
- Lingua
- inglese
- ISBN 10
- 0975841998
- ISBN 13
- 9780975841990
- Edizione
- seconda edizione
- Peso dell'articolo
- 950 grammi
- Cataloghi dei venditori
- Computing
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.
Anybook.com
Lincoln, Regno Unito
Venditore AbeBooks dal 22 dicembre 1999
Tariffe di spedizione da Regno Unito a U.S.A.
| Articolo | Da 5 a 10 giorni lavorativi | Da 1 a 3 giorni lavorativi |
|---|---|---|
| Primo articolo | EUR 15,57 | EUR 38,18 |
Metodi di pagamento
Descrizione dello Store
Based in central Lincoln, Anybook Ltd. sells exclusively on line. We specialise in academic works. All our books are in good condition or better, unless otherwise described. We will respond to your enquiry promptly and mail books out within 24 hours of receiving payment. We use Royal Mail and other reputable couriers at greatly discounted postage rates. If you find cheaper postage from the UK, we'll match it. Remember if you are unsatisfied in any way with any purchase, we will give you a complete and unconditional refund. All books are hand wrapped. All e-mails answered personally. All books are offered subject to being unsold.…
Informazioni sull’azienda del venditore
Anybook Ltd.
28 West End,, Burgh le Marsh,
Lincolnshire, Regno Unito PE24 5EY
Condizioni di vendita
Anybook Ltd is a company registered in England and Wales. Company Registration Number: 3692291. VAT Number: GB753406145. Share Capital GBP100.
Registered Offices:
28 West End,
Burgh le Marsh,
Lincolnshire,
PE24 5EY
UK
Customer Services:
2,Outer Circle Business Park,
Outer Circle Road,
Lincoln
LN2 4HX
UK
Email Address: sales@anybook.com
Telephone Number: +44 (0) 1522 519 991
Authorized Representative: Ms. Claire Williams
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 Anybook.com, Lincolnshire, United Kingdom, +44 01522 424108, 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
Orders usually ship within 1 business day. We use Royal Mail and other reputable couriers at greatly discounted postage rates. If your book order is heavy or over-sized, or valuable enough to require tracking, we may contact you to let you know extra shipping is required.