Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > Pro PHP
| Search | Today's Posts | Mark Forums Read
Pro PHP Advanced PHP coding discussions. Beginning-level questions will be redirected to the Beginning PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro PHP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 27th, 2006, 02:01 AM
Authorized User
 
Join Date: Jun 2006
Location: Enschede, , Netherlands.
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default PHP5 example code

Back to Professional PHP I am trying (finally) to understand the topics and I am running the (downloaded) examples:

Errors in: ch02 sampleCode.php

A $at wrong place:
    public function assignToBand(Band $band) {
 //error! $this->$bandReference = $band;
      $this->bandReference = $band;
    }
and at several places the interface definitions do not correspond to their implementations, example:
    public function addInstrument(Instrument $instrument);
//error public function addInstrument();




 
Old July 4th, 2006, 11:17 AM
Authorized User
 
Join Date: Jun 2006
Location: Enschede, , Netherlands.
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Who can move this Thread to the book Professional PHP5 thread (and delete this one)?





Similar Threads
Thread Thread Starter Forum Replies Last Post
Beginning PHP5 - Code Solutions? SM BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 3 March 22nd, 2009 10:25 AM
PHP5 chapter 4 exercise code error? pmd BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 3 June 23rd, 2008 12:56 PM
pro php5 full source code jontywagener Pro PHP 3 November 1st, 2007 01:33 AM
Pro PHP5 code missing jontywagener BOOK: Professional PHP 5 ISBN: 978-0-7645-7282-1 0 September 16th, 2007 06:56 AM
how do you uninstall php5? cardme42 BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 1 September 2nd, 2004 09:42 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.