Go Back   SitePoint Forums > Forum Index > Program Your Site > PHP
Newsletter FAQ Members List Calendar Mark Forums Read

New to SitePoint Forums? Register here for free!

SitePoint Sponsor
 
Reply
 
Thread Tools Display Modes
Old Jan 7, 2004, 02:58   #1
ArticleBot
SitePoint Articles
 
ArticleBot's Avatar
 
Join Date: Apr 2001
Posts: 0
Discussion thread for The PHP Anthology Volume 1, Chapter 2 - Object Oriented PHP

This is a dedicated thread for discussing the SitePoint article 'The PHP Anthology Volume 1, Chapter 2 - Object Oriented PHP'
ArticleBot is offline   Reply With Quote
Old Jan 7, 2004, 02:58   #2
Anonymous
SitePoint Community Guest
 
Posts: n/a
Brilliant but it liquidates the book in Spain in Spanish some day before the php5 exit he gives me that not: (
  Reply With Quote
Old Jan 8, 2004, 15:29   #3
rae
SitePoint Zealot
 
rae's Avatar
 
Join Date: Apr 2003
Location: bedroom :P
Posts: 159
Very valuable article! Thx! =)
rae is offline   Reply With Quote
Old Feb 13, 2004, 09:25   #4
jon86
SitePoint Member
 
Join Date: Feb 2004
Location: England
Posts: 1
Unhappy Parse error??

Hi.

I have just finished reading example 2.4.3 and 2.5.3 and writing it out to show it works. I have literally copied the PHP word for word and I get this error:

Parse error: parse error, unexpected $end in c:\apache\htdocs\sp\ch2\example 2.4.3_5.3.php on line 63.

All other PHP scripts I have written work perfectly.
I am running Apache server 1.3.29 with PHP 4.3.4 under Windows 98 SE. I don't see why there should be a problem...

What's wrong?

Many thanks,
Jon

Last edited by jon86; Feb 13, 2004 at 10:17.
jon86 is offline   Reply With Quote
Old Apr 24, 2004, 22:33   #5
Anonymous
SitePoint Community Guest
 
Posts: n/a
not bad, lost me a bit on the references, will have to read it again me thinks!
  Reply With Quote
Old Apr 25, 2004, 02:55   #6
duuudie
gimme the uuuuuuuuuuu
 
duuudie's Avatar
 
Join Date: Feb 2004
Location: Switzerland
Posts: 2,256
Quote:
Originally Posted by Anonymous
not bad, lost me a bit on the references, will have to read it again me thinks!
Note that the default behaviour of PHP5 will be to pass by reference when passing objects. So you would use the _clone method to create copies (more info: PHP Anth, vol.I, p48).

duuudie is offline   Reply With Quote
Old Apr 25, 2004, 03:00   #7
duuudie
gimme the uuuuuuuuuuu
 
duuudie's Avatar
 
Join Date: Feb 2004
Location: Switzerland
Posts: 2,256
Also I would like to add that for people having a hard time to make the 'mental leap' from procedural to oo, there is a 'training' thread going on in which members give each other little assignements. So join this thread if you need to practice.

Regards,
duuudie is offline   Reply With Quote
Old Jun 6, 2004, 12:40   #8
Anonymous
SitePoint Community Guest
 
Posts: n/a
this article is excellent to start OOP
  Reply With Quote
Old Jun 7, 2004, 01:56   #9
yjanse
SitePoint Addict
 
yjanse's Avatar
 
Join Date: Apr 2004
Location: The Netherlands
Posts: 240
As I have bought the books, I wonder if every chapter is going to be released for free? that would be a bit strange though.
I don't mind because I love having the books on paper to read in the train or bus, or at work.
yjanse is offline   Reply With Quote
Old Jul 15, 2004, 13:26   #10
Skybly
SitePoint Community Guest
 
Posts: n/a
Excellent article. I found the section on aggregation especially helpful, it's the first article I've found that really explains about how classes can interact with each other.
  Reply With Quote
Old Jul 19, 2004, 08:18   #11
Hamed
SitePoint Community Guest
 
Posts: n/a
hi!
thats a wonderfull Tutorial!
i wish i can buy related book...
but i cant becuase i live in iran....
please help me
webmaster@gonbadekabood.com
  Reply With Quote
Old Jan 19, 2005, 03:33   #12
saurab
SitePoint Zealot
 
saurab's Avatar
 
Join Date: Sep 2004
Posts: 139
what an article ! this is one of those rare articles on object oriented programming with php where you get to learn the core fundamentals of object aggregation and composition presented with such clarity !
saurab is offline   Reply With Quote
Old Aug 3, 2005, 14:58   #13
firemaker
SitePoint Enthusiast
 
firemaker's Avatar
 
Join Date: May 2003
Location: Vermont
Posts: 28
Thank you. It's very helpful to me. I'm looking at the eBay api sample developer's code. They pass around objects by reference. And now I understand what they are doing. I bet they read this article before they wrote the code.
firemaker is offline   Reply With Quote
Old Sep 4, 2005, 06:17   #14
SiCou
SitePoint Member
 
Join Date: Aug 2005
Posts: 6
A brilliant article based on the core fundamentals, which it seems everyone else who writes a PHP OOP article neglects. It helped to clarify things I have muddled together and it turns out after lots of thinking and doing I was right!

Thanks, brilliant.
SiCou is offline   Reply With Quote
Old Oct 8, 2005, 04:17   #15
setsfire
SitePoint Community Guest
 
Posts: n/a
A great article, using a very helpful technique of showing real world, easy to understand, PHP examples of the core OO concepts discussed. Thank you!

(side note: would be nice to include the actual sample .php files, of the examples, to see it all working together in effect)
  Reply With Quote
Reply

Bookmarks

« Previous Thread | Next Thread »

Thread Tools
Display Modes

 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Sponsored Links
 
Forum Jump


All times are GMT -7. The time now is 09:54.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright 1998-2009, SitePoint Pty Ltd. All Rights Reserved