About the Author

author photo

Adam Trachtenberg is the Director of the LinkedIn Developer Network, where he oversees developer relations and marketing for the LinkedIn Platform. Before LinkedIn, Adam worked at eBay in platform product management and marketing. Even earlier, he co-founded Student.Com and TVGrid.com. Adam is the author of PHP Cookbook and Upgrading to PHP 5. He lives in San Francisco.

See All Posts by This Author

Upgrading to PHP 5

I’ve just finished my latest book: Upgrading to PHP 5. We’re still doing the final copy edits and proofing, but I’m happy to say that the hard part is over.

The hook to Upgrading to PHP 5 is that it only covers the new parts of PHP, so it’s perfect if you already know PHP 4. There’s no wasted pages teaching you how to process basic forms; there’s only pure PHP 5 goodness.

However, if you have no PHP experience, this book is completely useless.

It won’t be out until July, but you can already pre-order the book from Amazon.

There Are 5 Responses So Far. »

  1. I didn’t see an obvious place to send book corrections so I’m posting it here.

    “Upgrading to PHP5″ page 261.” – Need if ($person = null) { … } around $this->data = array… Otherwise, when you pass in a $person, it always gets initialized.

    Also, though I don’t understand why, I had to change if (is_array($person) to isset($person). Seems it should have worked you way.

    Nice book by the way. Very helpful.


  2. Hi there, your book is great, but I’ve run into a problem from Appendix C “Installing PHP5 Alongside PHP4.” I’m using the Ports method you described, and everything went fine and appears to be working, however, when I browse to http://www.mysite.com:8080/ I get the following:

    You don’t have permission to access /php5/php/index.php on this server.

    The only difference I see from your instructions is that I am running Apache 1.3, not 2.0. Any ideas/tips?

  3. Hum… I’ve not used Apache 2.0 all that much, but that shouldn’t be a big difference. I would check the read permissions on the files.

  4. Got it! I also had to add “Allow From All” to my Directory section, so now mine looks like:

    ScriptAlias /php5 /usr/local/php5/bin

    Options +ExecCGI +FollowSymLinks
    AllowOverride None
    Allow From All

    Now another problem, only my first VirtualHost works.
    http://www.vhost1.com:8080 properly loads php5.
    http://www.vhost2.com:8080 loads php5, but it loads vhost1’s content. I’ve been pulling my hair out for days trying every possible combination of Listen, NameVirtualHost, and VirtualHost directives no no avail. Any ideas?

  5. I’ve figured it out. I also had to set doc_root to empty (or just comment it out) in my php5’s php.ini. It was originally set to my vhost1’s DocumentRoot. Sorry for the spam, but I figured this might come in handy for someone experiencing the same problems as me. All is well now. Thanks for the great book!