ClickBank Products

Beginning Ajax with PHP: From Novice to Professional

Product Description
Ajax breathes new life into web applications by transparently communicating and manipulating data in conjunction with a server-based technology. Of all the server-based technologies capable of working in conjunction with Ajax, perhaps none are more suitable than PHP, the world’s most popular scripting language. Beginning Ajax with PHP: From Novice to Professional is the first book to introduce how these two popular technologies can work together to create next-g… More >>

Beginning Ajax with PHP: From Novice to Professional

Related posts:

  1. Beginning PHP and PostgreSQL 8: From Novice to Professional
  2. Beginning PHP and MySQL: From Novice to Professional, Third Edition
  3. Beginning PHP and MySQL E-Commerce: From Novice to Professional, Second Edition

5 Responses to “Beginning Ajax with PHP: From Novice to Professional”

  • Marco Sciamanna -November 3, 2009 at 3:49 am


    I wrote this review in italian. I’ll try to translate it in english soon.

    ———————–

    Gli esempi, gente! Gli esempi sono un aspetto chiave dei libri, perché è lì che il lettore impara a mettere in pratica i concetti appresi. Affinché siano davvero utili, gli esempi devono essere *perfetti*.

    Alcuni utenti che hanno recensito questo libro hanno lamentato la poca attenzione al codice, in cui sono stati lasciati degli errori. Ma al di là di questo c’è di peggio.

    Negli esempi l’output restituito da PHP spesso – o dovrei dire “sempre”? – contiene codice HTML con tanto di DIV e direttive CSS e sul lato client questo output viene direttamente assegnato alla proprietà innerHTML di un certo DIV.

    Esempi di questo genere sono assolutamente da evitare, perché il povero lettore li prenderà per best-practices e continuerà a seguire questo modo sbagliato di scrivere codice.

    L’output del codice PHP deve contenere DATI. Solo DATI. Non certo formattazione HTML, DIV o direttive CSS. L’output del codice PHP può essere un documento XML che contiene i dati richiesti (ad esempio un elenco di prodotti che soddisfano i criteri di ricerca impostati dall’utente); quando il documento verrà caricato completamente, una funzione JS lo analizzerà e i dati in esso contenuti verranno visualizzati nella pagina corrente.

    Serve in altre parole una separazione netta tra i dati che si richiedono al server (elenco di prodotti) ed il modo in cui una determinata pagina dovrà presentarli all’utente (codice HTML e CSS). Se si mischiano queste due cose, lo script php che genera l’html sarà specifico per quella pagina e dovremmo scriverne un altro se vogliamo che gli stessi dati appaiano in una pagina differente (che può richiedere, ad esempio, una diversa formattazione dell’output). Non solo: in questo modo vincoliamo enormemente in codice PHP all’aspetto grafico della pagina. Se cambiamo nome ad una classe CSS o se ridefiniamo il modo in cui l’output deve essere presentato, dobbiamo mettere mano anche al codice PHP.

    E’ un’assurdità e non capisco come mai la si trovi stampata (più volte!!!!) in un libro.
    Rating: 2 / 5

    VA:F [1.9.13_1145]
    Rating: 0 (from 0 votes)
  • Mike R -November 3, 2009 at 4:46 am


    Good starter book, but there are plenty of tools and frameworks online (e.g. jQuery) that should be investigated and would probably serve the reader better than this book.
    Rating: 5 / 5

    VA:F [1.9.13_1145]
    Rating: 0 (from 0 votes)
  • Ele -November 3, 2009 at 5:33 am


    The samples you can download from apress are NOTHING like what the writer has written in his book. He mixes his languages in the code in the samples, then when things don’t work, you can’t go back to the code that you dl’ed from him, as it’s nothing like the book. I had more headaches from this book than any other technical book I’ve ever owned.

    It’s unfortunate apress didn’t bother to really go over this book with a fine tooth comb, or they would have noticed the simple things like using a “try” in php… then catching it.
    Rating: 1 / 5

    VA:F [1.9.13_1145]
    Rating: 0 (from 0 votes)
  • Renee C. Nguyen -November 3, 2009 at 8:32 am


    I honestly regret buying this book.

    The code is extremely messy and incomplete, breaking in and out of PHP to use HTML, applying in line styles instead of using stylesheets, and there simply is NOT enough documentation.

    The messy code alone makes me uneasy about the credibility of this author. Is he really explaining the best practices for Ajax, or just doing “what works”? It seems to be the latter, and I am not interested in starting off the wrong way! To make matters worse, in most of the examples, he does not break down the code to explain why he did things the way he did. Instead, he tells you WHAT he did.

    If you are looking for samples of code that “just work” but are not necessarily the proper syntax, he has a few examples of nice things you can incorporate in your next web application. If you want an understanding of how they work, and why certain methods are chosen over others, avoid this book at all costs.

    I want my money back.
    Rating: 1 / 5

    VA:F [1.9.13_1145]
    Rating: 0 (from 0 votes)
  • Hazel Gohorne -November 3, 2009 at 9:20 am


    I was excited about this book until I realized how many errors there are in the source code! It makes it very impractical to work with, too bad!!
    Rating: 3 / 5

    VA:F [1.9.13_1145]
    Rating: 0 (from 0 votes)

Leave a Reply