Showing posts with label PHP. Show all posts
Showing posts with label PHP. Show all posts

Tuesday, July 26, 2011

PHP Undercover. Mengungkap Rahasia Pemrograman PHP






Buku karangan Wiwit Siswoutomo ini berusaha mengungkapkan aspek-aspek pemrograman PHP yang jarang diulas oleh penulis buku pemrograman PHP yang lain. Melihat judulnya yang keren dan berkesan techie sekali, yaitu “PHP Undercover”, rasanya agak janggal kalau buku ini sengaja menyasar tingkat keterampilan yang sangat luas, yaitu dari Tingkat Pemula, Tingkat Menengah dan Tingkat Mahir. Berhasilkah buku ini mencapai targetnya?

Judul Buku: PHP Undercover. Mengungkap Rahasia Pemrograman PHP (+CD)
Pengarang: Wiwit Siswoutomo
Penerbit: PT Elex Media Komputindo, Jakarta, @2005

Bermula Dari Rasa Janggal

Agak aneh sewaktu saya mencoba membaca buku yang saya beli di Gramedia Semarang 30 Desember 2005 ini. Mengapa saya merasa aneh? Seperti yang sudah saya ungkapkan di pengantar, buku ini menyasar ke semua kelas keterampilan dari 3 kelas yang didefinisikan oleh Gramedia, yaitu Tingkat Pemula, Tingkat Menengah dan Tingkat Mahir. Padahal judulnya seakan tingkat tinggi karena mengusung kata “Undercover” yang berarti “Rahasia” atau bisa juga diartikan “Menyamar”. Tentunya ini sangat disukai oleh para programer PHP tingkat lanjut yang benar-benar membaktikan waktunya untuk memprogram dengan PHP.

Tetapi isinya ternyata tidak salah dengan sasaran segmen Tingkat Pemula, karena Bagian I dari buku ini mengusung teori dasar tentang OOP, strategi mendesain class dan Unified Modeling Language (UML). Mengapa harus membahas teori dasar OOP? Tadinya saya sempat bingung juga. Dari judulnya yang “PHP Undercover” seharusnya bahasan ini dilewatkan saja dan lebih baik langsung membahas ke “Undercover”-nya. Sempat juga merasa janggal selama beberapa saat. Untungnya setelah membaca semuanya baru saya membaca “Kata Pengantar”-nya. Di bagian Kata Pengantar baru saya paham kalau ternyata pembaca digiring untuk memahami “rahasia” pemrograman PHP berbasis obyek (OOP: Object Oriented Programming).

Setelah itu saya baru paham kalau seharusnya (menurut saya) judul buku ini adalah: “PHP Undercover: Menguak Rahasia Pemrograman OOP di PHP”. Setidaknya rangkaian kata “menguak rahasia pemrograman OOP di PHP” ini dituliskan di Kata Pengantar. Dan saya rasa seharusnya memang kata “OOP” ditampilkan di judul buku ini sehingga saya tidak merasa janggal dengan buku ini. Dan lagi sayangnya Kata Pengantar ini kurang dapat mengantarkan pembaca memahami isi dari buku. Bagian ini tidak menjelaskan tujuan dan sasaran dari Bagian I (Dasar-dasar OOP), Bagian II (Implementasi Class) dan Bagian III (Strategi Pengembangan Aplikasi) sehingga kita tidak dapat memahami keterkaitan antar bagian. Saya masih bingung dengan Bagian III yang membahas Strategi Pengembangan Aplikasi dan lebih tepat jika bahasan ini diperuntukkan bagi mahasiswa jurusan TI. Jika memang bahasan ini adalah untuk materi kuliah, seharusnya dia bukan lagi “Undercover”.

Sebagai seorang programmer, membaca buku dengan judul “Undercover” selalu menarik. Untungnya buku ini dapat menarik minat baca saya. Sayangnya porsinya hanya sepertiga saja, yaitu pada Bagian II (Implementasi Class) yang membahas banyak class hasil sumbangan programmer seluruh dunia. Tambah menarik karena class-class ini sangat berguna bagi programmer PHP walau pun sebenarnya class-class ini sudah sangat jamak tersedia di internet, baik source-nya mau pun bahasannya (tutorialnya). Boleh dikata class-class yang dibahas di buku ini adalah class-class wajib bagi seorang programmer PHP. Jadi sebenarnya tidak bisa dikategorikan sebagai “Undercover”. Tetapi karena masih banyak programmer Indonesia yang merasa akses internet masih mahal dan susah, lebih baik buku ini dibeli dan dijadikan panduan yang berguna.
Penilaian

Secara garis besar saya senang memiliki buku ini. Walau pun isinya termasuk basi karena class yang dibahas adalah class umum dan sudah sangat terkenal di dunia PHP, tetapi sudah cukup banyak membantu saya untuk tidak terkoneksi internet untuk mencari dan mendapatkan class-class terkenal dan terkemuka ini.

Saya juga menghargai penulisnya yang menyertakan sumber dari mana class tersebut diambil. Seperti kita tahu, source code class terkenal ini sangat dinamis sehingga walau pun semua class dan contoh tersedia di CD bawaan buku ini, banyak pembaca yang lebih nyaman jika mendownload versi yang terbaru untuk mendapatkan fitur dan kehandalan/kestabilan yang lebih baik.

Saya juga mengacungi jempol bagi susunan layout isi buku ini. Terutama bagian listing code-nya. Selain hurufnya pas, penulisan code memenuhi kaidah keindahan penulisan code, seperti digunakannya indentasi dan penempatan buka-tutup section. Tambah asyik lagi karena penulis rajin menyertakan baris komentar di bagian-bagian yang dianggap perlu.

Kesimpulan

Seharusnya buku ini menyasar segmen keterampilan: Tingkat Pemula saja. Kalau mau jujur, Tingkat Menengah dan Tingkat Mahir tidak perlu membeli dan membaca buku ini. Semuanya sudah tersedia di internet. Bukankah programmer PHP pasti harus sering (selalu) berhubungan dengan internet? Bukankah PHP itu berbasis internet? Menyambangi situs www.php.net saja sudah dapat memperoleh semua yang dibahas di buku ini.

Jika memang seharusnya sasarannya adalah Tingkat Pemula, maka judul “Undecover” memang layak ditampilkan. Tetapi jangan tampilkan judul “Undercover” bagi tingkat keterampilan di atasnya.

Catatan bagi penulis, sebaiknya tambahkan “OOP” di judul buku ini sehingga seharusnya judul buku menjadi: “Mengungkap Rahasia Pemrograman OOP di PHP”. Jangan lupa segmen pembaca dibatasi maksimal sampai Tingkat Menengah saja. Mungkin saya salah, tetapi menurut saya seharusnya demikian.

Sumber

Another PHP Books
Another Web Programming Books
Download

Thursday, June 16, 2011

PHP





Table Of Content
INTRODUCTION TO PHP
INSERT PHP CODE INTO A WEB PAGE
CREATE AN ASSOCIATIVE ARRAY
WORK WITH STRINGS
WORK WITH FILES
CREATING AND PROCESSING FORMS
MANAGING COOKIES AND SESSIONS
DEMYSTIFYING OBJECTS
WORK WITH DATABASES
PHP AND MYSQL


Another PHP Books
Another Programming Language Books
Download

Tuesday, December 14, 2010

Creating Database Web Applications with PHP and ASP













by Jeanine Meyer ISBN:1584502649
Charles River Media © 2003 (409 pages)
This informative text teaches beginning and intermediate designers the fundamentals of creating complex Web applications and teaches the basic concepts behind creating and testing database code.





Table of Contents
Creating Database Web Applications with PHP and ASP
Preface
Chapter 1 - Introduction
Chapter 2 - Basic HTML
Chapter 3 - HTML Forms and Client-Side JavaScript
Chapter 4 - Server-Side Basics
Chapter 5 - Database Basics
Chapter 6 - Analysis and Design of Applications
Chapter 7 - Structured Query Language
Chapter 8 - Database Management Systems: MySQL and Access
Chapter 9 - Connecting to the Database
Chapter 10 - Connecting to a Database: Advanced
Chapter 11 - Regular Expressions
Chapter 12 - Files
Chapter 13 - Cookies and Session Variables
Chapter 14 - Shopping Cart
Chapter 15 - Quiz Show
Chapter 16 - Scaling Up Your Application
Chapter 17 - Emerging Trends
Appendix A - Running ASP and PHP Scripts on Your Own Computer
Appendix B - About the CD-ROM
Bibliography
Index
List of Figures
List of Tables


Download
Anther Database Books
Another PHP Books
Another ASP Books
Another Web Programming Books

Sunday, December 12, 2010

Professional PHP Programming












Table of Contents
I. Introduction
1. About this book
2. Downloading, installing, configuring PHP
3. Programming in a Web environment
II. The Language
4. Variables and data types
5. Operators
6. Expressions and Statements
if ... else ... elseif
switch
while and do ... while
for Error! Bookmark not defined.
require and include
exit Error! Bookmark not defined.
7. Functions
How They Work
Passing Arguments
Variable Scope and Lifetime
Nested Functions and Recursion
Assigning Functions to Variables
8. Arrays
Starting Simply
Looping Through an Array
A Sequentially Indexed Array
Non-sequentially Indexed Arrays
A Few Words About next() and prev()
array_walk()
Associative Arrays
Multi-Dimensional Arrays
Sorting Functions
Using Arrays with Form Elements
9. Objects and OOP
Object-Oriented Programming
Defining a Class
Instantiating the Class
Constructors
Inheritance
10. String manipulation and regular expressions
III. Applying PHP
11. Non-relational databases
What is a database?
Databases and CSV
dbm - a fast, record-based, flat-file database
Another interface to dbm - DBA
Our telephone book interface
Error! Bookmark not defined.
12. SQL DBMS engines
13. Using LDAP
14. Serving XML documents
15. Graphic content creation
16. PHP connectivity
Utilizing TCP
The whois function
The Frontend
Extending the Frontend
Is my domain still available?
A web client
17. Sending E-mail
18. Cookies
What are cookies?
Cookies in PHP
Getting started
Deleting a cookie
Common pitfalls
What is your name?
19. Error handling and debugging
20. Security issues
21. Magic with quotes
What are magic quotes?
Defining the scope
Magic quotes explained
Sybase extension
Applying magic_quotes
Two helper functions
An alternative approach
Summary
22. Templates
IV. Sample Applications
23. A shopping cart application
24. An OO site
V. Advanced Topics
25. Version migration
26. When should I avoid regular expression functions
VI. Appendix
A. Reference
B. Open Source Software
C. PHP in non-UNIX environments
D. Notes on PHP4/Zend
Basic concepts
The binary compiler
The optimizer
New features in PHP4
PHP4 and overall portability
E. Other Resources

Download
Another Web Programming Books
Another PHP Books

Friday, November 12, 2010

Mastering PHP 4.1












Table of Contents
Mastering PHP 4.1
Introduction
Part I The Basics of PHP
Chapter 1 - Beginning Your Exploration of PHP
Chapter 2 - Variables
Chapter 3 - Operators and Expressions
Chapter 4 - Flow Control and Functions
Chapter 5 - Strings and Arrays
Part II Programming Principles and PHP
Chapter 6 - Object-Oriented Programming
Chapter 7 - Debugging and Errors
Part III Letting the Data Flow
Chapter 8 - SQL and Database Interaction
Chapter 9 - Forms and User Interaction
Chapter 10 - Data Validation
Chapter 11 - Sessions
Chapter 12 - Security
Chapter 13 - Files and Networking
Part IV How PHP Is Connected
Chapter 14 - Web Application Development
Chapter 15 - XML and XHTML
Chapter 16 - LDAP
Part V Using PHP in the Real World
Chapter 17 - PDF
Chapter 18 - Generating Graphics
Chapter 19 - E-Mail
Part VI Appendixes
Appendix A - A Crash Course on Installing PHP
Appendix B - PHP Configuration Options
Appendix C - XHTML Entities
Index
List of Figures
List of Tables
List of Listings
List of Sidebars

Download

Another Web Programming books
Another PHP Books

Monday, August 23, 2010

PHP and MySQL Web Development












PHP and MySQL are popular open-source technologies that are ideal for quickly developing database-driven Web applications. PHP is a powerful scripting language designed to enable developers to create highly featured Web applications quickly, and MySQL is a fast, reliable database that integrates well with PHP and is suited for dynamic Internet-based applications.

PHP and MySQL Web Development shows how to use these tools together to produce effective, interactive Web applications. It clearly describes the basics of the PHP language, explains how to set up and work with a MySQL database, and then shows how to use PHP to interact with the database and the server.

This practical, hands-on book includes numerous examples that demonstrate common tasks such as authenticating users, constructing a shopping cart, generating PDF documents and images dynamically, sending and managing email, facilitating user discussions, connecting to Web services using XML, and developing Web 2.0 applications with Ajax-based interactivity.


The fourth edition of PHP and MySQL Web Development has been thoroughly updated, revised, and expanded to cover developments in PHP 5 through version 5.3, such as namespaces and closures, as well as features introduced in MySQL 5.1.

Download
Another PHP books
Another Database books

Friday, August 13, 2010

Teach Yourself PHP4 in 24 Hours













How This Book Is Organized
This book is divided into four parts:
Part 1 is an introduction to PHP4.
Part 2 covers the basic features of the language. Pay particular attention to this section if
you are new to programming.
Part 3 covers PHP4 in more detail, looking at the functions and techniques you will need to
become a proficient PHP programmer.
Part 4 illustrates a complete self-contained example.
Part 1 contains Hours 1 through 3 and handles the information you will need to get your first
script up and running:
Hour 1, "PHP: From Home Page to Portal," describes the history and capabilities of PHP
and looks at some of the compelling reasons for deciding to learn this scripting language.
Hour 2, "Installing PHP," explains how to install PHP on a UNIX system and discusses
some of the configuration options you might want to choose when compiling PHP. In this
hour, we also look at PHP configuration options.
Hour 3, "A First Script," looks at the different ways in which you can embed a PHP script in
a document and create a script that writes text to the user's browser.
Part 2 comprises Hours 4 through 8. In this part, you will learn the basic components of the
PHP language:
Hour 4, "The Building Blocks," covers the basics of PHP. You will learn about variables,
data types, operators, and expressions.
Hour 5, "Going with the Flow," covers the syntax for controlling program flow in your scripts.
In addition to if and switch constructs, you will learn about loops using for and while
statements.
Hour 6, "Functions," explores the use of functions to organize your code.
Hour 7, "Arrays," discusses the array data type that can be used to hold list information.
We will also look at some of the functions that PHP4 provides to manipulate arrays.
Hour 8, "Objects," introduces PHP4's support for classes and objects. Throughout the
course of the hour, we will develop a working example.
Part 3 consists of Hours 9 through 22. In this part, you will come to grips with the features and
techniques of the language:
Hour 9, "Working with Forms," introduces the dimension of user input through the
mechanism of the HTML form. You will learn how to gather data submitted via a form.
Hour 10, "Working with Files," shows you how to work with files and directories on the local
machine.
Hour 11, "Working with the DBM Functions," demonstrates PHP4's support for DBM
database systems, versions of which are available on most systems.
Hour 12, "Database Integration— MySQL," provides a brief introduction to SQL syntax and
introduces the PHP4 functions that can be used to work with the MySQL database.
Hour 13, "Beyond the Box," covers some of the details of HTTP requests and looks at PHP
network functions.
Hour 14, "Working with Dynamic Images" explores PHP's image functions.With these, you
can create GIF or PNG files dynamically.
Hour 15, "Working with Dates," covers the functions and techniques you can use for date
arithmetic. We create a calendar example.
Hour 16, "Working with Data," revisits data types and explores some more of the functions
you can use to work with data in your scripts. More array functions are also covered.
Hour 17, "Working with Strings," covers the functions that you can use to manipulate
strings.
Hour 18, "Working with Regular Expressions," introduces regular expression functions.
You can use these to find and replace complex patterns in strings.
Hour 19, "Saving State with Cookies and Query Strings," shows you some techniques for
passing information across scripts and requests.
Hour 20, "Saving State with Session Functions," extends the techniques explored in Hour
19, using PHP4's built-in session functions.
Hour 21, "Working with the Server Environment," shows you how to call external programs
from your scripts and incorporate their output into your own.
Hour 22, "Debugging," shows you some techniques that you can use to track down
problems in your code. We also examine some common errors.
Part 4 consists of Hours 23 and 24. In these, we build a working example that incorporates
some of the techniques that were introduced earlier in the book.
Hour 23, "An Example (Part 1)," creates a brief for a club listings script. We build the code
that will allow users to create accounts and enter listings.
Hour 24, "An Example (Part 2)," concludes the project, building the code for nonmembers
to browse the listings and look at club profiles.


Download
Another PHP books

Monday, January 25, 2010

PHP 5 Unleashed
















PHP 5 Unleashed
By John Coggeshall

Publisher : Sams Publishing
Pub Date : December 28, 2004
Print ISBN : 0-672-32511-X
Pages : 840



• Table of Contents
Copyright
Lead Author
Contributing Authors
Acknowledgments
We Want to Hear from You!
Reader Services
Introduction
Organization of the Book
Part I. Working with PHP for General Web Development
Chapter 1. Basic PHP Development
How PHP Scripts Work
Basic PHP Syntax
Basic PHP Data Types
Variable Manipulation
Control Structures
User-Defined Functions
Dynamic Variables and Functions
Multiple File PHP Scripts
References
Strings in PHP
Comparing Strings
Advanced String Comparison
Search and Replacement
Formatting Strings
Strings and Locales
Formatting Date and Time Values
Summary
Chapter 2. Arrays
Basic Arrays
Implementing Arrays
More Array Materials
Chapter 3. Regular Expressions
The Basics of Regular Expressions
Limitations of the Basic Syntax
POSIX Regular Expressions
Perl-Compatible Regular Expressions (PCRE)
PCRE Modifiers
A Few Final Words
Chapter 4. Working with Forms in PHP
HTML Forms 101
Working with Form Submissions in PHP
Summary
Chapter 5. Advanced Form Techniques
Data Manipulation and Conversion
Form Data Integrity
Form Processing
Summary
Chapter 6. Persistent Data Using Sessions and Cookies
HTTP Cookies
PHP Sessions
Advanced Sessions
Summary
Chapter 7. Using Templates
The What and Why of Templates
The Smarty Template Engine
Summary
Part II. Advanced Web Development
Chapter 8. PEAR
What Is PEAR?
Getting and Installing PEAR
Using the PEAR Package Manager
Using the PEAR Website
Using PEAR Packages in Applications
Summary
Reference
Chapter 9. XSLT and Other XML Concerns
Relating XML to HTML
Using XSLT to Describe HTML Output Using XML Input
PHP4 and XSLT Using the DOM XML Module
PHP4 and XSLT Using the XSLT Module
PHP5 and XSLT
Accessing XML Data Using SimpleXML
Generating XML Documents Using PHP
Summary
References
Chapter 10. Debugging and Optimizations
Debugging Your PHP Scripts
Optimizing Your PHP Scripts
Summary
Chapter 11. User Authentication
Authenticating Users in PHP
Securing PHP Code
Summary
Chapter 12. Data Encryption
Shared Secret Versus Public Key
Shared Secret Algorithms
Public Key Cryptography
Using Public Keys in PHP
Summary
Chapter 13. Object-Oriented Programming in PHP
Why Objects?
Creating Basic Classes
Advanced Classes
Special Methods
Class Autoloading
Object Serialization
Exceptions
Iterators
Summary
Chapter 14. Eror Handling
The PHP Eror-Handling Model
What to Do About Erors
The Default Eror Handler
Eror Suppression
Custom Eror Handlers
Causing Erors
Putting It All Together
Summary
Chapter 15. Working with HTML/XHTML Using Tidy
Introduction
Basic Tidy Usage
Tidy Configuration Options
Using the Tidy Parser
Applications of Tidy
Summary
Chapter 16. Writing Email in PHP
The MIME Protocol
Implementing MIME Email in PHP
Summary
Part III. Building Applications in PHP
Chapter 17. Using PHP for Console Scripting
Core CLI Differences
Working with PHP CLI
CLI Tools and Extensions
Summary
Chapter 18. SOAP and PHP
What Are Web Services?
Installation
Creating Web Services
Consuming Web Services
Looking for Web Services
Summary
Chapter 19. Building WAP-Enabled Websites
What Is WAP?
System Requirements
Introduction to WML
Serving WAP Content
Sample Applications
Summary
Part IV. I/O, System Calls, and PHP
Chapter 20. Working with the File System
Working with Files in PHP
File Permissions
File Access Support Functions
Summary
Chapter 21. Network I/O
DNS/Reverse DNS Lookups
Socket Programming
Network Helper Functions
Summary
Chapter 22. Accessing the Underlying OS from PHP
Introduction
Unix-Specific OS Functionality
Platform-Independent System Functions
A Brief Note About Security
Summary
Part V. Working with Data in PHP
Chapter 23. Introduction to Databases
Using the MySQL Client
Basic MySQL Usage
Summary
Chapter 24. Using MySQL with PHP
Performing Queries from PHP
A MySQLi Session Handler
What Is a Custom Session Handler?
Summary
Chapter 25. Using SQLite with PHP
What Makes SQLite Unique?
Basic SQLite Functionality
Working with PHP UDFs in SQLite
Odds and Ends
Summary
Chapter 26. PHP's dba Functions
Preparations and Settings
Creating a File-Based Database
Writing Data
Reading Data
Sample Application
Conclusion
Part VI. Graphical Output with PHP
Chapter 27. Working with Images
Basic Image Creation Using GD
Using the PHP/GD Drawing Functions
Working with Colors and Brushes
Using Fonts and Printing Strings
General Image Manipulation
Other Graphics Functions
Summary
Chapter 28. Printable Document Generation
A Note Regarding the Examples in This Chapter
Generating Dynamic RTF Documents
Generating Dynamic PDF Documents
Related Resources
Part VII. Appendixes
Appendix A. Installing PHP5 and MySQL
Installing PHP5
Installing MySQL and PHP Modules
Installing PEAR
Appendix B. HTTP Reference
What Is HTTP?
PHP Programming Libraries for HTTP Work
Understanding an HTTP Transaction
HTTP Client Methods
What Comes Back: Server Response Codes
HTTP Headers
Encoding
Identifying Clients and Servers
The "Referer"
Fetching Content from an HTTP Source
Media Types
Cookies: Preserving State and a Tasty Treat
Security and Authorization
Client-Side Caching of HTTP Content
Appendix C. Migrating Applications from PHP4 to PHP5
Configuration
Object-Oriented Programming (OOP)
New Behavior of Functions
Further Reading
Appendix D. Good Programming Techniques and Performance Issues
Common Style Mistakes
Common Security Concerns
Style and SecurityLogging
Summary
Appendix E. Resources and Mailing Lists
Relevant Websites
Mailing Lists and Newsgroups
Index


Download

Another PHP books
Another Programming Language books
Related Posts with Thumbnails

Put Your Ads Here!