Beginning PHP4 (Programmer to Programmer)

  Author:    Chris Ullman, Allan Kent, Chris Ullman, Wankyu Choi, Chris Lea, Wankyu Choi, Allan Kent, Chris Lea, Ganesh Prasad, Ganesh Prasad
  ISBN:    0764543644
  Sales Rank:    935253
  Published:    2000-11-15
  Publisher:    Wrox
  # Pages:    816
  Binding:    Paperback
  Avg. Rating:    4.0 based on 47 reviews
  Used Offers:    20 from $0.01
  Amazon Price:    $26.39
  (Data above last updated:  2008-11-08 07:18:43 EST)
  
  
Sort customer reviews by:
  
Show All Reviews on Page      Hide All Reviews on Page
   
  
Beginning PHP4 (Programmer to Programmer)
  
What is this book about?

PHP is a rapidly growing web technology which enables web designers to build dynamic, interactive web applications, incorporating information from a host of databases, and including features such as e-mail integration and dynamically generated images. PHP4 added tons of features to make web application development even easier, and this book will show you how to make the most of the language's powerful capabilities.

This book is a complete tutorial in PHP's language features and functionality, beginning with the basics and building up to the design and construction of complex data-driven websites. Fully working examples in the book include a directory-style web search engine, a mailing list management system, a web-based file editor, and a graphical online shopping mall guidebook.

What does this book cover?

Here are just a few of the things you'll find covered in this book:

  • Complete tutorial in the PHP language
  • Installation guide and troubleshooting tips
  • Introduction to relational databases and MySQL
  • Practical worked examples throughout, including a detailed case study
  • All code written for both Windows and UNIX systems
  • Detailed language reference included

Who is this book for?

Anybody who knows HTML can use this book. If you've done any programming, that will be useful, but it's not a requirement. You can run all of the code on either a Windows or UNIX (e.g., Linux) system, and the book explains how to set up a web server and database in both of these environments.

Beginning PHP4 offers an almost ideal introductory tutorial to one of today's hotter scripting languages. This book really is everything that the novice needs to start building dynamic Web sites that are powered by PHP4, but old hands at programming also will find in it valuable information.

PHP, of course, is introduced in the book, but there's also an approachable and effective introduction to programming in general. The conscientious tutorial on basic concepts like variables, keywords, and flow control will give even beginners an understanding of the basics of writing programs. PHP, it turns out, is not only a great way to generate HTML dynamically, but a very marketable skill. Web fundamentals like HTTP, HTML form variables, and managing session information using no less than four different techniques are explained thoroughly and effectively. You also find out how to install PHP and other tools on your system, with the assistance of plenty of screen shots.

That's not to say that this book will cramp the style of more experienced developers. Some chapters delve into such important and advanced topics as database programming (with MySQL) and PHP's support for XML. One standout section demystifies the new support for objects and classes in PHP4. Basic topics like managing files and directories on the server, plus graphics processing, are addressed, of course, and a nifty sample program shows you how to build a Web-based text editor. Except for the final case study--a "URL directory manager" (akin to Yahoo!) that's rather specialized--the examples are right on, and illustrate everyday programming tasks. You'll learn also how to generate e-mail with PHP--certainly a valuable skill to have.

The appendix lists several hundred PHP functions in over 50 pages--a handy and useful feature. In all, Beginning PHP4 provides a strong choice for learning about one of today's most powerful and easy-to-use scripting languages; it's concise, fast moving, and thoroughly approachable. --Richard Dragan

Topics covered:

  • Introduction to PHP 4
  • Downloading and installing PHP
  • Basics of HTTP and Web pages
  • PHP as a scripting language
  • PHP data types
  • Constants and conversions
  • HTML primer
  • Form variables
  • Decision making in PHP
  • Loops and arrays
  • PHP functions
  • Error handling in PHP
  • Tips on writing more maintainable code
  • Debugging hints
  • Preserving state with hidden form variables

  • Query strings
  • Cookies and PHP4 native sessions
  • Using PHP objects
  • File and directory functions
  • PHP database programming
  • Installing and using MySQL
  • Tutorial for SQL syntax
  • Querying and updating records
  • XML "quickstart" for PHP users
  • Creating e-mail and electronic newsletters
  • PHP graphics processing (including image maps)
  • Case study for a URL directory manager
  • ODBC tutorial
  • PHP4 function reference
  •                   Reader Reviews 1 - 10 of 10                 
      
      
    Review
    Date
    Review
    Rating(5 High)
    Review
    Helpful
    to:
    Customer Review Reviewer
    Info
    Permanent
    Link
    Reader Reviews Below Sorted by Newest First
    06-22-04 4 7\7
    (Hide Review...)  I went from Zero to Expert and this book was a big help
    Reviewer Permalink
    I like this book and highly recommend it. It is good for people who are new to PHP but not so good for people who are new to programming. I've done a lot of programming in other languages and needed to learn PHP in a big hurry for a project that I was about to take on. This book got me up to speed fast. I'm inclined to think that a lot of the negative reviews are from people without any programming background. I agree this book is not the right place to start if you are a non-programmer. I've also done a fair amount of html prior to reading this book, I found that it's html section and php techniques for generating forms was really excellent, I learned some really great things!

    As far as depth goes, such as discussing details of the functions. Well, that's what the php manual is for (www.php.net). Initially I tried to learn the language from the php manual alone but didn't get very far, I couldn't see the forest because the trees were in the way, eg too much detail without a big picture. What this book does is to focus on the big picture of how and why to do something. It also shows multiple approachs to the same problem and compares them so that you get an idea of the alternatives and trade-offs.

    Starting from not knowing php to writing some very sophisticated programs... I learned it all with two books and the manual. The other book that I read is PHP Developers Cookbook. The two books are very complimentary, there is not that much overlap between them instead they fill each others gaps. Note that the "Cookbook" is more advanced and assumes that you already know a lot of php.

    Okay, the one big gripe that I have is their lack of proof reading. They must have really rushed this to press. There are literally hundreds of errors and the errata sheet is incomplete. However it is easy to get past the errors as long as you don't make the assumption that the text is always correct. In other words, if something doesn't make sense then you should be suspicious of an error instead of always assuming that it's your lack of understanding.

    The necessity of Rewriting the code examples is a little annoying, but the book can hardly be faulted for language changes that were made after the book was published. PHP is a rapidly moving target, no book will ever be current for very long. And besides, the best way to understand a program is to take it apart and rewrite it, that's why they are called "Examples". (most of the changes needed are trivial).

    Mostly what you need to do is to change $varname to $_REQUEST['varname']

    and that will fix it. If you are having trouble finding the correct variable then use

    phpinfo();

    to get a list of all of the available variables, then you just pick what you need from the list and put a $ in front of it.
    (...)By the way, the code examples can be downloaded from their website which can save a lot of typing...

    (Review Data Last Updated: 2008-11-08 07:21:06 EST)
    05-26-04 3 3\3
    (Hide Review...)  It Gets The Job Done, But It's Nothing Special
    Reviewer Permalink
    If you've been programming for a while, the pace of this book is too slow to read cover to cover. The best thing to do is read the first half of the book (through chapter 9) and then skip around to what interests you. As others have mentioned, you will have to modify the code in the examples to get them to work because of the use of globals. This is not impossible to overcome if you write the message board for the book at http://p2p.wrox.com. However, it is annoying. There are other errors too, but it doesn't take much in the way of trial and error to get around them. The three chapters on MySQL are the most useful. If you've worked with databases in other scripting languages, e.g. Perl, Python, or Ruby, it's simply a matter of looking up what you want to do. There are some good style examples on structuring PHP code - use of an "$action" variable to drive the behavior of the site from a single page. The book also stresses putting reusable code in include files. The author dismisses classes/objects as not really being useful in PHP, but the use of classes elimates the need for the "global" declarations in many of the common include files. All in all, this is an adequate book, but noting profound. If you have programming experience, this book will get you up and running quickly.
    (Review Data Last Updated: 2007-07-10 22:52:20 EST)
    04-19-04 3 1\1
    (Hide Review...)  Warning: error in most code
    Reviewer Permalink
    This book is very well written, but you should know that the code in the book is written with "register_globals" turned on in the php engine. This makes the code insecure and should be turn off. You have to alter to make it work.

    Look at the errata for more info: http://www.wrox.com/books/errata/0764543644_errata.shtml

    (Review Data Last Updated: 2007-07-10 22:52:20 EST)
    12-02-03 1 3\4
    (Hide Review...)  Dissapointingly inconsistent book
    Reviewer Permalink
    The book is out of date as it covers PHP4 before security changes were made. It is also very inconsistant later on, as the various authors seem to believe in very different conventions, for example early on they claim type casting is unnecessary, then in Ch. 10 they use it loads - without any explanation, also in Ch. 10 they start introducing new functions without any explanation of how they work or even what they do (they explain some but not others) and the examples are really tedious due to similarity in some parts. The different authors also type the same commands differently (e.g echo ""; and echo(""); - again without explanation, and they obviously didn't collaborate enough to ensure consistency.

    Otherwise an ok introduction to PHP4, but I'm sure there are better guides out these that will be more consistent.

    (Review Data Last Updated: 2007-07-10 22:52:20 EST)
    12-02-03 1 3\5
    (Hide Review...)  Dissapointingly inconsistent book
    Reviewer Permalink
    This book was an alright general introduction to PHP4 let down by a great number of inconsistencies between authors. They didn't introduce functions adequately in the latter parts of the book, for example in chapter 10 they start using new functions without any explanation of what they do or their usage, and the different authors didn't collaborate sufficiently as they use different ways of writing the same commands without any explanation (e.g. the echo "" and echo("") statements) and they also contradicted each other, for example again in chapter 10 the author uses typecasting while in a previous chapter we had been told this was unnecessary, and again no explanation is given as to why the author did this.

    The examples are also very tedious and in some places extremely repetitive (chapter 10 repeats the same example ten times with very little change).

    Overall a great dissapointment and it is also out of date as new PHP security means most examples will not work without changing to a weaker security setting.

    Not recommended, there must be more consistent books about for PHP.

    (Review Data Last Updated: 2007-07-10 22:52:20 EST)
    06-18-03 3 3\23
    (Hide Review...)  I was stucked at chatper 6
    Reviewer Permalink
    I was having headache when i read the book, that because the examples were all related to MATH . it's no use for building a real website . I feel sick of their explaination with more than pages, and just one example for the whole chapter .

    If you hate MATH , dont buy this book .

    (Review Data Last Updated: 2007-07-10 22:52:20 EST)
    06-13-03 4 3\5
    (Hide Review...)  Train gives it four stars
    Reviewer Permalink
    The book was great. I learned from in-depth examples. The only problem I had with the book was that some of the examples didn't work. You would really have to troubleshoot your code. Which for the beginner that kinda stinks. If I had the chance again I would definitely buy the book. The authors did a great job.
    (Review Data Last Updated: 2006-07-07 11:58:31 EST)
    01-29-03 4 (NA)
    (Hide Review...)  Great Reference
    Reviewer Permalink
    This book turned me onto the Wrox press style of computing references.

    The book manages to teach the inside and out of php while not boring the user to death. Numerous usefull examples, and a layout compliant with both cover-2-cover reading, and quick lookups for the information you need.

    This book covers the beginings (installing php on your webserver), the middle (writing php documents), and the end (php with a database back end) for the average user. Those looking to do full scale application development would be well advised to start here, then to move onto a more advanced book.

    (Review Data Last Updated: 2006-07-07 11:58:31 EST)
    01-26-03 5 3\5
    (Hide Review...)  Better then O'Reilly
    Reviewer Permalink
    I requested that my Parents buy me this book over two years ago. Sure I paid them for it but I demanded this book. I'm not quite sure why I did but at the time I was wanting to learn PHP and I was not happy with the way the O'Reilly books were written for Perl (2nd Edition) so I knew that I was not going O'Reilly for learning PHP4. Now that I've had this book and time has passed I would say that I have suggested this book to lots of people and they have all learned PHP alot easier then they would have from O'Reilly books.

    I say go WNOR, Chris, et al. You all did a good job. I felt like the authors were sitting over my shoulder and giving me a one on one session each time I read the book. The examples were fun, understandable, and had a point them. They also helped me to have a better understanding in Programming in general. The next year, I had a C/C++ programming class and Aced it without a problem. You know, they say 9 out of 10 students fail their first programming class. I wasn't one of those nine thanks to this book.

    (Review Data Last Updated: 2006-07-07 11:58:31 EST)
    01-19-03 5 9\9
    (Hide Review...)  Excellent for the beginner - get this red book!
    Reviewer Permalink
    I began php with two books, one being this wrox publication and the other a more advanced sams publication. The wrox publication was the fundamental lifesaver in my php learning. The examples were easy to follow. And wrox's p2p website and forums have proven to be a lifesaver again and again, providing a wonderful compliment to the book. It is not only a fabulous learning and how-to manual, but also makes a terrific reference. I would definitely recommend this book to the beginner. But not to sound like a complete advertisement! My experience with this book has truly been a positive one.
    (Review Data Last Updated: 2006-07-07 11:58:31 EST)
      
                      Reader Reviews 1 - 10 of 10                 
      
      
      
      
      
      

    Because the data used to generate this site come from outside sources, VeryWellSaid.com cannot guarantee the completeness or accuracy of the data.
    Search VeryWellSaid™
    Google
    Web VeryWellSaid™
    New subjects are added every week.
    View Subjects Below by:
    * Top Selling
     (click category name, left)
    * Top-Rated Top Sellers
     (click 'Top Rated', right)
    In the news...  
    Dubai\UAE Top Rated
    Influenza\Bird Flu Top Rated
    Iraq Top Rated
    Supreme Court Top Rated
    All Books Top Rated
    Arts Top Rated
    Photography Top Rated
    Digital Photography Top Rated
    Digital Cameras Top Rated
    Biography Top Rated
    Business Top Rated
    Management Top Rated
    Marketing Top Rated
    Sales Top Rated
    Stocks Top Rated
    Bonds Top Rated
    Real Estate Top Rated
    Trading Top Rated
    Commodities Trading Top Rated
    Time Management Top Rated
    Starting A Business Top Rated
    Children's Top Rated
    Comics Top Rated
    Computers Top Rated
    PC Top Rated
    Mac Top Rated
    Programming Top Rated
    Design Patterns Top Rated
    .Net Top Rated
    C# Top Rated
    Vb.Net Top Rated
    Asp.Net Top Rated
    Java Top Rated
    Python Top Rated
    PHP Top Rated
    Perl Top Rated
    Javascript Top Rated
    Ajax Top Rated
    CSS Top Rated
    Open Source Top Rated
    SQL Top Rated
    Databases Top Rated
    Oracle Top Rated
    MySql Top Rated
    Sql Server Top Rated
    IIS Top Rated
    Apache Top Rated
    Linux Top Rated
    Windows Server Top Rated
    Project Management Top Rated
    HTML Top Rated
    UML Top Rated
    IT Certifications Top Rated
    Cisco Certifications Top Rated
    MCSE Top Rated
    MCSD Top Rated
    Cooking Top Rated
    Italian Cooking Top Rated
    Vegetarian Cooking Top Rated
    Wine Top Rated
    Engineering Top Rated
    Entertainment Top Rated
    Health Top Rated
    Nutrition Top Rated
    Dieting Top Rated
    Sex Top Rated
    History Top Rated
    Military History Top Rated
    British History Top Rated
    Middle East History Top Rated
    Land Battles Top Rated
    Naval Warfare Top Rated
    Air Warfare Top Rated
    9/11 Top Rated
    Terrorism Top Rated
    Home Top Rated
    Mortgage\Home Equity Loan Top Rated
    Cars Top Rated
    Car Buying Top Rated
    Sports Cars Top Rated
    Cat Top Rated
    Humor Top Rated
    Horror Top Rated
    Law Top Rated
    IP Law Top Rated
    Legal History Top Rated
    Fiction Top Rated
    Oprah's Book Club Top Rated
    Medicine Top Rated
    Cancer Top Rated
    Stroke Top Rated
    Heart Disease Top Rated
    Fertility Top Rated
    Diabetes Top Rated
    Pharmacology Top Rated
    Back Problems Top Rated
    Menopause Top Rated
    Thyroid Top Rated
    Pain Top Rated
    Organic Chemistry Top Rated
    Immune System Top Rated
    Mystery Top Rated
    Nonfiction Top Rated
    Outdoors Top Rated
    Running Top Rated
    Radio Control Models Top Rated
    Guns Top Rated
    Parenting Top Rated
    Divorce Top Rated
    Professional Top Rated
    Reference Top Rated
    Religion Top Rated
    Romance Top Rated
    Science Top Rated
    Physics Top Rated
    Chemistry Top Rated
    Astronomy Top Rated
    Psychology Top Rated
    Science Fiction Top Rated
    Sports Top Rated
    Teens Top Rated
    Travel Top Rated
    USA Top Rated
    Europe Top Rated
    France Top Rated
    Italy Top Rated
    England Top Rated
    China Top Rated
    All Books Arts Biography Click Here For An A-Z Index Of All 213 Best-Seller Subjects Business Children's Comics
    Computers Cooking Engineering Entertainment Health History Home Horror Humor Law Fiction Medicine Mystery
    Nonfiction Outdoors Parenting Professional Reference Religion Romance Science Sci-Fi Sports Teens Travel
    In Association with Amazon.com

    Cache miss
    (not cached)