На всех торрентах на трекере установлена скидка на скачивание в размере 100 процентов(а).
 Возможность скачивания торрента НЕ зависит от ограничений при низком ратио, низком аплоаде, требуемом ратио или требуемом аплоаде.

Начать новую тему Ответить на тему
Статистика раздачи
Размер: 12 МБ | Добавлен: 22 окт 2016, 11:19 | Скачали: 1
Сидеров: 1  [0 байт/сек]    Личеров: 0  [0 байт/сек]
Пред. тема | След. тема 


СообщениеДобавлено: 22 окт 2016, 11:19 

Ответить с цитатой 

PHP Cookbook: Solutions & Examples for PHP Programmers (Third Edition)

Год: 2014
Автор: David Sklar, Adam Trachtenberg
Издательство: O'Reilly Media
ISBN: 144936375X
Язык: Английский
Формат: PDF
Качество: Изначально компьютерное (eBook)
Интерактивное оглавление: Да
Количество страниц: 820
Want to understand a certain PHP programming technique? Or learn how to accomplish a particular task? This cookbook is the first place to look. With more than 350 code-rich recipes revised for PHP 5.4 and 5.5, this third edition provides updated solutions for generating dynamic web content—everything from using basic data types to querying databases, and from calling RESTful APIs to testing and securing your site.
Each recipe includes code solutions that you can freely use, along with a discussion of how and why they work. Whether you’re an experienced PHP programmer or coming to PHP from another language, this book is an ideal on-the-job resource.

You’ll find recipes to help you with:
- Basic data types: strings, numbers, arrays, and dates and times
- Program building blocks: variables, functions, classes, and objects
- Web programming: cookies, forms, sessions, and authentication
- Database access using PDO, SQLite, and other extensions
- RESTful API clients and servers, including HTTP, XML, and OAuth
- Key concepts: email, regular expressions, and graphics creation
- Designing robust applications: security and encryption, error handling, debugging and testing, and performance tuning
- Files, directories, and PHP’s Command Line Interface
- Libraries and package managers such as Composer and PECL
Who This Book Is For
What Is in This Book
Other Resources
Conventions Used in This Book
Comments and Questions
1. Strings
Accessing Substrings
Extracting Substrings
Replacing Substrings
Processing a String One Byte at a Time
Reversing a String by Word or Byte
Generating a Random String
Expanding and Compressing Tabs
Controlling Case
Interpolating Functions and Expressions Within Strings
Trimming Blanks from a String
Generating Comma-Separated Data
Parsing Comma-Separated Data
Generating Fixed-Width Field Data Records
Parsing Fixed-Width Field Data Records
Taking Strings Apart
Wrapping Text at a Certain Line Length
Storing Binary Data in Strings
Program: Downloadable CSV File
2. Numbers
Checking Whether a Variable Contains a Valid Number
Comparing Floating-Point Numbers
Rounding Floating-Point Numbers
Operating on a Series of Integers
Generating Random Numbers Within a Range
Generating Predictable Random Numbers
Generating Biased Random Numbers
Taking Logarithms
Calculating Exponents
Formatting Numbers
Formatting Monetary Values
Printing Correct Plurals
Calculating Trigonometric Functions
Doing Trigonometry in Degrees, Not Radians
Handling Very Large or Very Small Numbers
Converting Between Bases
Calculating Using Numbers in Bases Other Than Decimal
Finding the Distance Between Two Places
3. Dates and Times
Finding the Current Date and Time
Converting Time and Date Parts to an Epoch Timestamp
Converting an Epoch Timestamp to Time and Date Parts
Printing a Date or Time in a Specified Format
Finding the Difference of Two Dates
Finding the Day in a Week, Month, or Year
Validating a Date
Parsing Dates and Times from Strings
Adding to or Subtracting from a Date
Calculating Time with Time Zones and Daylight Saving Time
Generating a High-Precision Time
Generating Time Ranges
Using Non-Gregorian Calendars
Program: Calendar
4. Arrays
Specifying an Array Not Beginning at Element 0
Storing Multiple Elements per Key in an Array
Initializing an Array to a Range of Integers
Iterating Through an Array
Deleting Elements from an Array
Changing Array Size
Appending One Array to Another
Turning an Array into a String
Printing an Array with Commas
Checking if a Key Is in an Array
Checking if an Element Is in an Array
Finding the Position of a Value in an Array
Finding Elements That Pass a Certain Test
Finding the Largest or Smallest Valued Element in an Array
Reversing an Array
Sorting an Array
Sorting an Array by a Computable Field
Sorting Multiple Arrays
Sorting an Array Using a Method Instead of a Function
Randomizing an Array
Removing Duplicate Elements from an Array
Applying a Function to Each Element in an Array
Finding the Union, Intersection, or Difference of Two Arrays
Iterating Efficiently over Large or Expensive Datasets
Accessing an Object Using Array Syntax
5. Variables
Avoiding == Versus = Confusion
Establishing a Default Value
Exchanging Values Without Using Temporary Variables
Creating a Dynamic Variable Name
Persisting a Local Variable’s Value Across Function Invocations
Sharing Variables Between Processes
Encapsulating Complex Data Types in a String
Dumping Variable Contents as Strings
6. Functions
Accessing Function Parameters
Setting Default Values for Function Parameters
Passing Values by Reference
Using Named Parameters
Enforcing Types of Function Arguments
Creating Functions That Take a Variable Number of Arguments
Returning Values by Reference
Returning More Than One Value
Skipping Selected Return Values
Returning Failure
Calling Variable Functions
Accessing a Global Variable Inside a Function
Creating Dynamic Functions
7. Classes and Objects
Instantiating Objects
Defining Object Constructors
Defining Object Destructors
Implementing Access Control
Preventing Changes to Classes and Methods
Defining Object Stringification
Requiring Multiple Classes to Behave Similarly
Creating Abstract Base Classes
Assigning Object References
Cloning Objects
Overriding Property Accesses
Calling Methods on an Object Returned by Another Method
Aggregating Objects
Accessing Overridden Methods
Creating Methods Dynamically
Using Method Polymorphism
Defining Class Constants
Defining Static Properties and Methods
Controlling Object Serialization
Introspecting Objects
Checking If an Object Is an Instance of a Specific Class
Autoloading Class Files upon Object Instantiation
Instantiating an Object Dynamically
Program: whereis
8. Web Fundamentals
Setting Cookies
Reading Cookie Values
Deleting Cookies
Building a Query String
Reading the POST Request Body
Using HTTP Basic or Digest Authentication
Using Cookie Authentication
Reading an HTTP Header
Writing an HTTP Header
Sending a Specific HTTP Status Code
Redirecting to a Different Location
Flushing Output to the Browser
Buffering Output to the Browser
Compressing Web Output
Reading Environment Variables
Setting Environment Variables
Communicating Within Apache
Redirecting Mobile Browsers to a Mobile Optimized Site
Program: Website Account (De)activator
Program: Tiny Wiki
Program: HTTP Range
9. Forms
Processing Form Input
Validating Form Input: Required Fields
Validating Form Input: Numbers
Validating Form Input: Email Addresses
Validating Form Input: Drop-Down Menus
Validating Form Input: Radio Buttons
Validating Form Input: Checkboxes
Validating Form Input: Dates and Times
Validating Form Input: Credit Cards
Preventing Cross-Site Scripting
Processing Uploaded Files
Working with Multipage Forms
Redisplaying Forms with Inline Error Messages
Guarding Against Multiple Submissions of the Same Form
Preventing Global Variable Injection
Handling Remote Variables with Periods in Their Names
Using Form Elements with Multiple Options
Creating Drop-Down Menus Based on the Current Date
10. Database Access
Using DBM Databases
Using an SQLite Database
Connecting to an SQL Database
Querying an SQL Database
Retrieving Rows Without a Loop
Modifying Data in an SQL Database
Repeating Queries Efficiently
Finding the Number of Rows Returned by a Query
Escaping Quotes
Logging Debugging Information and Errors
Creating Unique Identifiers
Building Queries Programmatically
Making Paginated Links for a Series of Records
Caching Queries and Results
Accessing a Database Connection Anywhere in Your Program
Program: Storing a Threaded Message Board
Using Redis
11. Sessions and Data Persistence
Using Session Tracking
Preventing Session Hijacking
Preventing Session Fixation
Storing Sessons in Memcached
Storing Sessions in a Database
Storing Arbitrary Data in Shared Memory
Caching Calculated Results in Summary Tables
12. XML
Generating XML as a String
Generating XML with DOM
Parsing Basic XML Documents
Parsing Complex XML Documents
Parsing Large XML Documents
Extracting Information Using XPath
Transforming XML with XSLT
Setting XSLT Parameters from PHP
Calling PHP Functions from XSLT Stylesheets
Validating XML Documents
Handling Content Encoding
Reading RSS and Atom Feeds
Writing RSS Feeds
Writing Atom Feeds
13. Web Automation
Marking Up a Web Page
Cleaning Up Broken or Nonstandard HTML
Extracting Links from an HTML File
Converting Plain Text to HTML
Converting HTML to Plain Text
Removing HTML and PHP Tags
Responding to an Ajax Request
Integrating with JavaScript
Program: Finding Stale Links
Program: Finding Fresh Links
14. Consuming RESTful APIs
Fetching a URL with the GET Method
Fetching a URL with the POST Method and Form Data
Fetching a URL with an Arbitrary Method and POST Body
Fetching a URL with Cookies
Fetching a URL with Arbitrary Headers
Fetching a URL with a Timeout
Fetching an HTTPS URL
Debugging the Raw HTTP Exchange
Making an OAuth 1.0 Request
Making an OAuth 2.0 Request
15. Serving RESTful APIs
Exposing and Routing to a Resource
Exposing Clean Resource Paths
Exposing a Resource for Reading
Creating a Resource
Editing a Resource
Deleting a Resource
Indicating Errors and Failures
Supporting Multiple Formats
16. Internet Services
Sending Mail
Sending MIME Mail
Reading Mail with IMAP or POP3
Getting and Putting Files with FTP
Looking Up Addresses with LDAP
Using LDAP for User Authentication
Performing DNS Lookups
Checking If a Host Is Alive
Getting Information About a Domain Name
17. Graphics
Drawing Lines, Rectangles, and Polygons
Drawing Arcs, Ellipses, and Circles
Drawing with Patterned Lines
Drawing Text
Drawing Centered Text
Building Dynamic Images
Getting and Setting a Transparent Color
Overlaying Watermarks
Creating Thumbnail Images
Reading EXIF Data
Serving Images Securely
Program: Generating Bar Charts from Poll Results
18. Security and Encryption
Preventing Session Fixation
Protecting Against Form Spoofing
Ensuring Input Is Filtered
Avoiding Cross-Site Scripting
Eliminating SQL Injection
Keeping Passwords Out of Your Site Files
Storing Passwords
Dealing with Lost Passwords
Verifying Data with Hashes
Encrypting and Decrypting Data
Storing Encrypted Data in a File or Database
Sharing Encrypted Data with Another Website
Detecting SSL
Encrypting Email with GPG
19. Internationalization and Localization
Determining the User’s Locale
Localizing Text Messages
Localizing Dates and Times
Localizing Numbers
Localizing Currency Values
Localizing Images
Localizing Included Files
Sorting in a Locale-Aware Order
Managing Localization Resources
Setting the Character Encoding of Outgoing Data
Setting the Character Encoding of Incoming Data
Manipulating UTF-8 Text
20. Error Handling
Finding and Fixing Parse Errors
Creating Your Own Exception Classes
Printing a Stack Trace
Reading Configuration Variables
Setting Configuration Variables
Hiding Error Messages from Users
Tuning Error Handling
Using a Custom Error Handler
Logging Errors
Eliminating “headers already sent” Errors
Logging Debugging Information
21. Software Engineering
Using a Debugger Extension
Writing a Unit Test
Writing a Unit Test Suite
Applying a Unit Test to a Web Page
Setting Up a Test Environment
Using the Built-in Web Server
22. Performance Tuning
Using an Accelerator
Timing Function Execution
Timing Program Execution by Function
Timing Program Execution by Statement
Timing Program Execution by Section
Profiling with a Debugger Extension
Stress-Testing Your Website
Avoiding Regular Expressions
23. Regular Expressions
Switching from ereg to preg
Matching Words
Finding the nth Occurrence of a Match
Choosing Greedy or Nongreedy Matches
Finding All Lines in a File That Match a Pattern
Capturing Text Inside HTML Tags
Preventing Parentheses from Capturing Text
Escaping Special Characters in a Regular Expression
Reading Records with a Pattern Separator
Using a PHP Function in a Regular Expression
24. Files
Creating or Opening a Local File
Creating a Temporary File
Opening a Remote File
Reading from Standard Input
Reading a File into a String
Counting Lines, Paragraphs, or Records in a File
Processing Every Word in a File
Picking a Random Line from a File
Randomizing All Lines in a File
Processing Variable-Length Text Fields
Reading Configuration Files
Modifying a File in Place Without a Temporary File
Flushing Output to a File
Writing to Standard Output
Writing to Many Filehandles Simultaneously
Escaping Shell Metacharacters
Passing Input to a Program
Reading Standard Output from a Program
Reading Standard Error from a Program
Locking a File
Reading and Writing Custom File Types
Reading and Writing Compressed Files
25. Directories
Getting and Setting File Timestamps
Getting File Information
Changing File Permissions or Ownership
Splitting a Filename into Its Component Parts
Deleting a File
Copying or Moving a File
Processing All Files in a Directory
Getting a List of Filenames Matching a Pattern
Processing All Files in a Directory Recursively
Making New Directories
Removing a Directory and Its Contents
Program: Web Server Directory Listing
Program: Site Search
26. Command-Line PHP
Parsing Program Arguments
Parsing Program Arguments with getopt
Reading from the Keyboard
Running PHP Code on Every Line of an Input File
Reading Passwords
Colorizing Console Output
Program: DOM Explorer
27. Packages
Defining and Installing Composer Dependencies
Finding Composer Packages
Installing Composer Packages
Using the PEAR Installer
Finding PEAR Packages
Finding Information About a Package
Installing PEAR Packages
Upgrading PEAR Packages
Uninstalling PEAR Packages
Installing PECL Packages
Правила, инструкции, FAQ!!!
Торрент  Добавлен [22 окт 2016, 11:19] Скачать торрент
Скачать торрент
[ Размер 15.53 КБ / Просмотров 6 ]

Размер  12 МБ
Приватный: Нет (DHT включён)
.torrent скачан  1
Как залить торрент? | Как скачать Torrent? | Как смотреть и слушать онлайн?  

     Отправить личное сообщение
Страница 1 из 1
Показать сообщения за:  Поле сортировки  
Начать новую тему Ответить на тему

   Похожие торренты   Автор   Ответы   Просмотры   Последнее сообщение 
В этой теме нет новых непрочитанных сообщений. Скачать торрент Проверен Sklar D., Trachtenberg A. - PHP Cookbook, Second Edition [2006, PDF, ENG]

в форуме Веб-дизайн и программирование, Размер: 7.6 МБ, Здоровье: 0%




22 окт 2016, 09:31

Anonymous Перейти к последнему сообщению

В этой теме нет новых непрочитанных сообщений. Скачать торрент Проверен Бестселлеры O'Reilly - David Sklar, Adam Trachtenberg/Адам Трахтенберг, Дэвид Скляр - PHP. Рецепты программирования. 3-е издание [2015, PDF, RUS]

в форуме Веб-дизайн и программирование, Размер: 5.8 МБ, Здоровье: 100%




22 окт 2016, 11:41

Anonymous Перейти к последнему сообщению

В этой теме нет новых непрочитанных сообщений. Скачать торрент Проверен Sklar D., Trachtenberg A. - PHP Cookbook [2002, CHM, ENG]

в форуме Веб-дизайн и программирование, Размер: 1.17 МБ, Здоровье: 0%




22 окт 2016, 09:21

Anonymous Перейти к последнему сообщению

В этой теме нет новых непрочитанных сообщений. Скачать торрент Проверен Simon Monk - Raspberry Pi Cookbook: Software and Hardware Problems and Solutions, 2nd Edition [2016, PDF, ENG]

в форуме Веб-дизайн и программирование, Размер: 122.81 МБ, Здоровье: 100%




22 окт 2016, 14:18

Anonymous Перейти к последнему сообщению

В этой теме нет новых непрочитанных сообщений. Скачать торрент Проверен Tim Cox - Raspberry Pi Cookbook for Python Programmers [2014, PDF/ePub, ENG]

в форуме Веб-дизайн и программирование, Размер: 24.69 МБ, Здоровье: 100%




22 окт 2016, 13:28

Anonymous Перейти к последнему сообщению

Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 1

Вы не можете начинать темы
Вы не можете отвечать на сообщения
Вы не можете редактировать свои сообщения
Вы не можете удалять свои сообщения
Вы не можете добавлять вложения


 Ресурс не предоставляет электронные версии произведений, а занимается лишь коллекционированием и каталогизацией ссылок, присылаемых и публикуемых на форуме нашими читателями. Если вы являетесь правообладателем какого-либо представленного материала и не желаете чтобы ссылка на него находилась в нашем каталоге, свяжитесь с нами и мы незамедлительно удалим её. Файлы для обмена на трекере предоставлены пользователями сайта, и администрация не несёт ответственности за их содержание. Просьба не заливать файлы, защищенные авторскими правами, а также файлы нелегального содержания!