[PHP] PHP, OOP and AJAX

2009-06-05 Thread Julian Muscat Doublesin
Update. Hello Everyone, First of all, thank you all for your input. I ran a sinmple test using the suggestions you gave me and and require_once. Using firebug to test the output, I got an internal server error. I found out what the problem was. What I am doing is I have classes which

[PHP] PHP, OOP and AJAX

2009-05-28 Thread Julian Muscat Doublesin
Hi Everyone, This is the first time that I am posting in the PHP forum, so hope that I am osting in the right place. I would like to say that before submitting to this forum I have done some research looking for a solution without success. I had been programming in ASP.NET for years using

Re: [PHP] PHP, OOP and AJAX

2009-05-28 Thread Tom Worster
On 5/28/09 7:31 AM, Julian Muscat Doublesin opensourc...@gmail.com wrote: I had been programming in ASP.NET for years using Object Oriented Princeliness but decided to walk away from that. I am now researching and specialising in the open source world. yay! I have started to develop a

Re: [PHP] PHP OOP

2009-02-12 Thread Kyle Terry
On Mon, Feb 9, 2009 at 11:12 AM, Yannick Mortier mvmort...@googlemail.comwrote: 2009/2/9 tedd t...@sperling.com: snip Yes C++ is not bad for this, but it has also got some flaws. What language doesn't have flaws, dude? Out of all the OOP C++ and java are probably the most solid. And I

Re: [PHP] PHP OOP

2009-02-12 Thread Virgilio Quilario
Java is really awesome at OOP and it is great for teaching OOP or, shall we say illustrating OOP. OOP is a programming technique in general without any bias towards any programming language. Good background on OOP concepts is essential in learning language specific OOP implementation. So don't

Re: [PHP] PHP OOP

2009-02-10 Thread Marcus Gnaß
Paul M Foster wrote: On Mon, Feb 09, 2009 at 11:02:37AM -0500, tedd wrote: As a side note, I think students should learn a language like C before learning something like Perl, Python or PHP. Having to deal with defining/declaring variables and their storage methods before use I think makes

Re: [PHP] PHP OOP

2009-02-10 Thread Carlos Medina
Marcus Gnaß schrieb: Paul M Foster wrote: On Mon, Feb 09, 2009 at 11:02:37AM -0500, tedd wrote: As a side note, I think students should learn a language like C before learning something like Perl, Python or PHP. Having to deal with defining/declaring variables and their storage methods before

Re: [PHP] PHP OOP

2009-02-10 Thread Byron
Where I study, Intro to OOP is taught in C# using Visual Studio 2003 and further OOP concepts are taught in Java, with the academic computer science of OOP alongside. On Wed, Feb 11, 2009 at 2:40 AM, Carlos Medina i...@simply-networks.dewrote: Marcus Gnaß schrieb: Paul M Foster wrote: On

Re: [PHP] PHP OOP

2009-02-10 Thread Andrew Ballard
On Tue, Feb 10, 2009 at 8:40 AM, Carlos Medina i...@simply-networks.de wrote: Marcus Gnaß schrieb: Paul M Foster wrote: On Mon, Feb 09, 2009 at 11:02:37AM -0500, tedd wrote: As a side note, I think students should learn a language like C before learning something like Perl, Python or PHP.

Re: [PHP] PHP OOP

2009-02-10 Thread tedd
At 9:36 AM -0500 2/10/09, Andrew Ballard wrote: On Tue, Feb 10, 2009 at 8:40 AM, Carlos Medina i...@simply-networks.de wrote: Marcus Gnaß schrieb: Hi @ all, but this is a php list... Regards Carlos Yes, it is, but the original question was about OOP and not specifically about PHP.

Re: [PHP] PHP OOP

2009-02-10 Thread German Geek
A loosely typed language like PHP might not be the best choice for teaching OOP, because even though PHP makes it easier with loose types, you should know about them and how they are stored etc. PHP is a great language but maybe not strict enough for students to understand all the errors that can

[PHP] PHP OOP

2009-02-09 Thread tedd
Hi gang: At the college where I teach, they are considering teaching OOP, but they don't want to settle on a specific language. My thoughts are it's difficult to teach OOP without a language -- while the general concepts of OOP are interesting, people need to see how concepts are applied to

Re: [PHP] PHP OOP

2009-02-09 Thread Kyle Terry
On Mon, Feb 9, 2009 at 8:02 AM, tedd t...@sperling.com wrote: Hi gang: At the college where I teach, they are considering teaching OOP, but they don't want to settle on a specific language. My thoughts are it's difficult to teach OOP without a language -- while the general concepts of OOP

Re: [PHP] PHP OOP

2009-02-09 Thread Thodoris
Hi gang: At the college where I teach, they are considering teaching OOP, but they don't want to settle on a specific language. My thoughts are it's difficult to teach OOP without a language -- while the general concepts of OOP are interesting, people need to see how concepts are applied

Re: [PHP] PHP OOP

2009-02-09 Thread Eric Butera
On Mon, Feb 9, 2009 at 11:20 AM, Thodoris t...@kinetix.gr wrote: Hi gang: At the college where I teach, they are considering teaching OOP, but they don't want to settle on a specific language. My thoughts are it's difficult to teach OOP without a language -- while the general concepts of

Re: [PHP] PHP OOP

2009-02-09 Thread Nathan Rixham
Eric Butera wrote: On Mon, Feb 9, 2009 at 11:20 AM, Thodoris t...@kinetix.gr wrote: Hi gang: At the college where I teach, they are considering teaching OOP, but they don't want to settle on a specific language. My thoughts are it's difficult to teach OOP without a language -- while the

Re: [PHP] PHP OOP

2009-02-09 Thread Per Jessen
tedd wrote: I lean toward C++ because I wrote in it for a few years AND C++ appears to be the most common, widespread, and popular OOP language. I would agree, although I suspect Java is also a good candidate. However, while I don't know PHP OOP, I am open to considering it because of the

Re: [PHP] PHP OOP

2009-02-09 Thread Per Jessen
tedd wrote: I lean toward C++ because I wrote in it for a few years AND C++ appears to be the most common, widespread, and popular OOP language. I would agree, although I suspect Java is also a good candidate. However, while I don't know PHP OOP, I am open to considering it because of the

Re: [PHP] PHP OOP

2009-02-09 Thread Stuart
2009/2/9 tedd t...@sperling.com: Hi gang: At the college where I teach, they are considering teaching OOP, but they don't want to settle on a specific language. My thoughts are it's difficult to teach OOP without a language -- while the general concepts of OOP are interesting, people need

Re: [PHP] PHP OOP

2009-02-09 Thread Paul M Foster
On Mon, Feb 09, 2009 at 11:02:37AM -0500, tedd wrote: Hi gang: At the college where I teach, they are considering teaching OOP, but they don't want to settle on a specific language. My thoughts are it's difficult to teach OOP without a language -- while the general concepts of OOP are

Re: [PHP] PHP OOP

2009-02-09 Thread Eric Butera
On Mon, Feb 9, 2009 at 12:19 PM, Stuart stut...@gmail.com wrote: 2009/2/9 tedd t...@sperling.com: Hi gang: At the college where I teach, they are considering teaching OOP, but they don't want to settle on a specific language. My thoughts are it's difficult to teach OOP without a language --

Re: [PHP] PHP OOP

2009-02-09 Thread Per Jessen
Paul M Foster wrote: PHP is *not* a good example for OO. There are a lot of OO principles it doesn't follow. I would have suggested Smalltalk, the original OO language, except that no one uses it any more, and other languages don't necessarily fully implement OO as done in Smalltalk.

Re: [PHP] PHP OOP

2009-02-09 Thread Yannick Mortier
2009/2/9 tedd t...@sperling.com: Hi gang: At the college where I teach, they are considering teaching OOP, but they don't want to settle on a specific language. I guess that is not a good idea, you should really combine it with a language, as some students will be curious enough to play

Re: [PHP] PHP OOP

2009-02-09 Thread Larry Garfield
On Monday 09 February 2009 10:02:37 am tedd wrote: Hi gang: At the college where I teach, they are considering teaching OOP, but they don't want to settle on a specific language. My thoughts are it's difficult to teach OOP without a language -- while the general concepts of OOP are

[PHP] php OOP book ¿...?

2005-07-01 Thread enriquebris
I´m looking for a book dedicated to OOP in PHP ... Now I´m reading ¨Core PHP Programming (Third Edition) (2003)¨ but it has just a few information about OOP. Do you know another book? ¿Do you have it? If anyone wants this book (Core PHP Programming (Third Edition) (2003)) just email me

[PHP] PHP OOP Question

2004-09-08 Thread Paul Waring
Is it bad practice for a class to have a variable and method of the same name? Well, it's a matter of opinion what is and isn't bad practice, but personally I would never give a variable and a function the same name - if only to avoid confusion (PHP shouldn't mind if you do so though). Paul --

[PHP] PHP OOP Question

2004-09-07 Thread ed . lazor
Is it bad practice for a class to have a variable and method of the same name? For example: class product { var $Name; function Name() { return stripslashes($this-Name); } } Thanks, -Ed This message was

[PHP] PHP OOP

2003-10-01 Thread Geoff Hellstrand
I'm working for the first time with object orientated programming in php and I can't figure out how to access elements or methods when you place objects inside objects inside other objects. my origonal idea was to use the following syntax: $a-b-c but this just returns: $a-b . -c Please, need

RE: [PHP] PHP OOP

2003-10-01 Thread Daniel Purdy
[snip]I'm working for the first time with object orientated programming in php and I can't figure out how to access elements or methods when you place objects inside objects inside other objects. my origonal idea was to use the following syntax: $a-b-c but this just returns: $a-b . -c Please,

Re: [PHP] PHP OOP

2003-10-01 Thread Raquel Rice
On Tue, 30 Sep 2003 19:00:18 -0400 Geoff Hellstrand [EMAIL PROTECTED] wrote: I'm working for the first time with object orientated programming in php and I can't figure out how to access elements or methods when you place objects inside objects inside other objects. my origonal idea was to

Re: [PHP] PHP OOP

2003-10-01 Thread Tom Rogers
Hi, Wednesday, October 1, 2003, 9:00:18 AM, you wrote: GH I'm working for the first time with object orientated programming in php and GH I can't figure out how to access elements or methods when you place objects GH inside objects inside other objects. GH my origonal idea was to use the

Re: [PHP] PHP OOP x Procedural Performance

2003-05-30 Thread Ernest E Vogelsinger
At 04:05 29.05.2003, William N. Zanatta said: [snip] It is a known issue that function calls are expensive for the processor. The OOP let us better organize the code but, thinking in function (or method) calls it may be more expensive than in the

[PHP] PHP OOP x Procedural Performance - Conclusions

2003-05-30 Thread William N. Zanatta
First of all. Thanks everybody for the feedback. It was very precious to hear from you. So, there's no big differences unless we're working with heavy processes. Even in this case, the performance seems to be very good in both practices, thus I'll keep OOP. My OOP concepts are not really

[PHP] PHP OOP x Procedural Performance

2003-05-29 Thread William N. Zanatta
It is a known issue that function calls are expensive for the processor. The OOP let us better organize the code but, thinking in function (or method) calls it may be more expensive than in the procedural form. My question is, has anyone made any tests regarding the performance of OOP

Re: [PHP] PHP OOP x Procedural Performance

2003-05-29 Thread Ray Hunter
yes, the bottom line is code reuse...that is why there is oop. So that a developer can always reuse code saving money on development and thus if speed is an issue then adding more hardware. -- Ray On Wed, 2003-05-28 at 20:05, William N. Zanatta wrote: It is a known issue that function calls

RE: [PHP] PHP OOP x Procedural Performance

2003-05-29 Thread Jay Blanchard
[snip] It is a known issue that function calls are expensive for the processor. The OOP let us better organize the code but, thinking in function (or method) calls it may be more expensive than in the procedural form. My question is, has anyone made any tests regarding the performance of

[PHP] PHP OOP design question

2003-03-04 Thread Joseph Szobody
I have several web projects that are all database driven. I have recently been diving into OOP, and rewriting a lot of procedural code in OOP. I have a design question about handling the MySQL connection. I have a mysql() class which handles all my queries, automatic inserts/updates, etc. Just

Re: [PHP] PHP OOP design question

2003-03-04 Thread Ernest E Vogelsinger
At 14:24 04.03.2003, Joseph Szobody spoke out and said: [snip] I have several web projects that are all database driven. I have recently been diving into OOP, and rewriting a lot of procedural code in OOP. I have a design question about handling the MySQL

[PHP] PHP OOP

2002-09-03 Thread Rodrigo Dominguez
I have a problem, I can't create an array of classes into a class, for example: class one { var $a; function foo() { echo foo; } } class two { var $b; function initialize() { $b[0] = new one(); $b[1] = new one(); } } $test = new two();

[PHP] PHP OOP list

2002-07-23 Thread Mathieu Dumoulin
Is there a newsgroup list for PHP and OOP? It would be great to split up this large topic and create an OOP specific list. InsaneCoder -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] PHP OOP list

2002-07-23 Thread Vail, Warren
Try http://www.phpclasses.org; Warren Vail Tools, Metrics Quality Processes (415) 667-7814 Pager (877) 774-9891 215 Fremont 02-658 -Original Message- From: Mathieu Dumoulin [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 23, 2002 10:36 AM To: [EMAIL PROTECTED] Subject: [PHP] PHP OOP

[PHP] PHP OOP: Multiple Class Extends

2002-03-21 Thread Nathan Cassano
Attention PHP guru's, I have a question about PHP and OOP. My problem is that I want multiple inheritance functionality in PHP but it does not support this (see http://www.zend.com/manual/keyword.extends.php). My question is can PHP classes be extended multiple times to simulate multiple

RE: [PHP] PHP OOP: Multiple Class Extends

2002-03-21 Thread Martin Towell
]] Sent: Friday, March 22, 2002 9:49 AM To: [EMAIL PROTECTED] Subject: [PHP] PHP OOP: Multiple Class Extends Attention PHP guru's, I have a question about PHP and OOP. My problem is that I want multiple inheritance functionality in PHP but it does not support this (see http://www.zend.com

[PHP] PHP oop in C

2001-01-29 Thread matt . wong
Hello, Does anyone know how to take a PHP class and move it directly into PHP's C code, OR (even better) to move it into C code that compiles in a separate binary object (e.g. myobj.o), and is then linked to the php executable (or httpd executable)? For example, how can I move this code into