Re: [PHP] A Good OOP Tutorial/Read?

2013-05-16 Thread tamouse mailing lists
Back to the OP's request, Ken Pugh's "Interface Oriented Design" goes quite a long way in describing OO* and directly to the heart of why interfaces make so much sense as a way of designing your code. It does not show PHP examples, it tries to remain agnostic to language.

Re: [PHP] A Good OOP Tutorial/Read?

2013-05-16 Thread Dan Joseph
Hey Guys, Thanks for all this good information so far. I'll keep you posted on my edumacation! -Dan On Thu, May 16, 2013 at 11:16 PM, Larry Garfield wrote: > On 05/16/2013 06:45 PM, Tedd Sperling wrote: > >> Thanks to both Bastien and Sebastian: >> >> While I understand that an interface is l

Re: [PHP] A Good OOP Tutorial/Read?

2013-05-16 Thread Larry Garfield
On 05/16/2013 06:45 PM, Tedd Sperling wrote: Thanks to both Bastien and Sebastian: While I understand that an interface is like an abstract Class, in that you don't have to flesh-out your methods, but rather where you define exactly how Classes who implement that interface will be required to

Re: [PHP] A Good OOP Tutorial/Read?

2013-05-16 Thread Nick Khamis
interface Shape { public double getArea(); } class Circle implements Shape { double radius; public Circle(int double radius) { this.radius = radius; } public double getArea() { return (radius * radius * 3.1415); } } class Square implements Shape { double side; public

Re: [PHP] A Good OOP Tutorial/Read?

2013-05-16 Thread Tedd Sperling
Thanks to both Bastien and Sebastian: While I understand that an interface is like an abstract Class, in that you don't have to flesh-out your methods, but rather where you define exactly how Classes who implement that interface will be required to flesh-out those methods. But so what? What's t

Re: [PHP] A Good OOP Tutorial/Read?

2013-05-16 Thread Bastien
Bastien Koert On 2013-05-16, at 5:28 PM, Tedd Sperling wrote: > -Dan: > > I teach this stuff and still don't fully understand the why/when for > interfaces. > > Even the guru's I talk with can't give me a good explanation as to what the > advantages are in using them. I've done a lot of ex

Re: [PHP] A Good OOP Tutorial/Read?

2013-05-16 Thread Sebastian Krebs
2013/5/16 Tedd Sperling > -Dan: > > I teach this stuff and still don't fully understand the why/when for > interfaces. > > Even the guru's I talk with can't give me a good explanation as to what > the advantages are in using them. I've done a lot of experimenting and > can't see any advantage for

Re: [PHP] A Good OOP Tutorial/Read?

2013-05-16 Thread Nick Khamis
OO comes from the heart. You know you have it when everything you look at turn into objects, attributes, accessors, mutators, and constructors. When IBM transitioned from functional to OO level programming, they had their top level engineers walk into a room and tell their employees that 80% of th

Re: [PHP] A Good OOP Tutorial/Read?

2013-05-16 Thread Tedd Sperling
-Dan: I teach this stuff and still don't fully understand the why/when for interfaces. Even the guru's I talk with can't give me a good explanation as to what the advantages are in using them. I've done a lot of experimenting and can't see any advantage for them other than grouping different cl

Re: [PHP] Trying to understand what I've broken to not allow mkdir() to work.

2013-05-16 Thread Richard Quadling
On 16 May 2013 15:42, Karim Geiger wrote: > Hi Richard, > > On 05/16/2013 04:33 PM, Richard Quadling wrote: > > Hi. > > > > I'm running on a Mac with a Centos VM (via VirtualBox). > > > > Was running from from our SVN server. > > > > New repo, now running from GIT. > > > > The checkout is on my l

Re: [PHP] A Good OOP Tutorial/Read?

2013-05-16 Thread Dan Joseph
Thanks! This looks like a good start. Covers some things I have questions on. I like his approach. Now I just need something advanced to continue on after this. I'd like to learn more about extending, interfaces, abstracts, and why/when they should be used. Appreciate it! -Dan On Thu, May

Re: [PHP] A Good OOP Tutorial/Read?

2013-05-16 Thread Francisco C Soares
On 05/16/2013 11:55 AM, Dan Joseph wrote: Hey Folks, I'm looking to refine my PHP 5 OOP skills. I know the basics, understand patterns, but have clearly missed a few things along the way. Do any of you have some real good PHP 5 OOP tutorials/reads bookmarked you could share? Something other t

[PHP] A Good OOP Tutorial/Read?

2013-05-16 Thread Dan Joseph
Hey Folks, I'm looking to refine my PHP 5 OOP skills. I know the basics, understand patterns, but have clearly missed a few things along the way. Do any of you have some real good PHP 5 OOP tutorials/reads bookmarked you could share? Something other than php.net/oop5. Thanks! -- -Dan Joseph

Re: [PHP] Trying to understand what I've broken to not allow mkdir() to work.

2013-05-16 Thread Karim Geiger
Hi Richard, On 05/16/2013 04:33 PM, Richard Quadling wrote: > Hi. > > I'm running on a Mac with a Centos VM (via VirtualBox). > > Was running from from our SVN server. > > New repo, now running from GIT. > > The checkout is on my local machine (using Netbeans, LESS, etc.) > > The VM is runnin

Re: [PHP] Trying to understand what I've broken to not allow mkdir() to work.

2013-05-16 Thread Alain Williams
On Thu, May 16, 2013 at 03:33:53PM +0100, Richard Quadling wrote: > Hi. > > I'm running on a Mac with a Centos VM (via VirtualBox). > > Was running from from our SVN server. > > New repo, now running from GIT. > > The checkout is on my local machine (using Netbeans, LESS, etc.) > > The VM is r

[PHP] Trying to understand what I've broken to not allow mkdir() to work.

2013-05-16 Thread Richard Quadling
Hi. I'm running on a Mac with a Centos VM (via VirtualBox). Was running from from our SVN server. New repo, now running from GIT. The checkout is on my local machine (using Netbeans, LESS, etc.) The VM is running Apache and PHP V5.4.15 During the move, I've got some permissions issues, which

Re: [PHP] Saving session to database

2013-05-16 Thread Lester Caine
Matijn Woudt wrote: On Thu, May 16, 2013 at 10:43 AM, Lester Caine mailto:les...@lsces.co.uk>> wrote: I'm having a problem with webtrees ... http://webtrees.net/ My copy is running on http://webtrees.lsces.org.uk and you will see that it is throwing an error relating to the sessio

Re: [PHP] php extension about php_stream_fopen_tmpfile()

2013-05-16 Thread Matijn Woudt
On Fri, May 10, 2013 at 3:37 AM, Bleakwind wrote: > I write a php extension. > How can I user Zend API do that? > where can I find some doc about file_handle->handle ? > There's not really a place to ask questions for writing extensions, but most people here will not be able to answer your ques

Re: [PHP] Saving session to database

2013-05-16 Thread Matijn Woudt
On Thu, May 16, 2013 at 10:43 AM, Lester Caine wrote: > I'm having a problem with webtrees ... http://webtrees.net/ > My copy is running on http://webtrees.lsces.org.uk and you will see that > it is throwing an error relating to the session handling. > > Running Apache 2.2.22, PHP5.4.14, MySQL 5.

[PHP] Saving session to database

2013-05-16 Thread Lester Caine
I'm having a problem with webtrees ... http://webtrees.net/ My copy is running on http://webtrees.lsces.org.uk and you will see that it is throwing an error relating to the session handling. Running Apache 2.2.22, PHP5.4.14, MySQL 5.5.31 ( http://lsces.org.uk/phpinfo.php ) If I comment out th