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 represent
On Thu, May 28, 2009 at 5:31 AM, Julian Muscat Doublesin <
opensourc...@gmail.com> wrote:
> 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
> r
On 5/28/09 7:31 AM, "Julian Muscat Doublesin"
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 project using MySQL,
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 Object
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 wo
On Mon, Feb 9, 2009 at 11:12 AM, Yannick Mortier
wrote:
> 2009/2/9 tedd :
>
>
>
> 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 _hate_ java...
>
> >
> > However, while I d
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
At 9:36 AM -0500 2/10/09, Andrew Ballard wrote:
On Tue, Feb 10, 2009 at 8:40 AM, Carlos Medina
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. It seems fair enough
On Tue, Feb 10, 2009 at 8:40 AM, Carlos Medina 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. Having
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 wrote:
> Marcus Gnaß schrieb:
>
>> Paul M Foster wrote:
>>
>>> On Mon, Feb 09, 2009
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
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 fo
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 in
2009/2/9 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.
>
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 around with
it at
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.
On Mon, Feb 9, 2009 at 12:19 PM, Stuart wrote:
> 2009/2/9 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
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 ar
2009/2/9 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 c
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 th
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 th
Eric Butera wrote:
On Mon, Feb 9, 2009 at 11:20 AM, Thodoris 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 O
On Mon, Feb 9, 2009 at 11:20 AM, Thodoris 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 OO
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 t
On Mon, Feb 9, 2009 at 8:02 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 interest
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
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 ..
> 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
--
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 se
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 fol
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
[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"
Ple
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, n
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 s
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 proc
[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
OO
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
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 vers
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 MySQ
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
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();
$test->
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();
$test->
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
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
PROTECTED]]
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
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
Take a look at the domxml extension code, for one example. There are other extensions
that do this as well.
John
On Mon, 29 Jan 2001 [EMAIL PROTECTED] wrote:
> 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 co
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
47 matches
Mail list logo