freelanceprogrammers.org Forum Index » PHP
PHP-OOP no of objects limit????
Joined: 05 Apr 2005
Posts: 8
PHP-OOP no of objects limit????
Pardon me, if this sounds silly. But I`ve have to ask anyway.
Is there a limit to how many objects that can be declared and executed
using PHP?
I seem to have declared almost a hundred and somewhere along the way,
my later objects seem to stop initializing their classes and
projecting their values to their respective places, while the earlier
ones work fine.
I know its silly because surely you can call for example,
over a thousand object in turn a longer duration process time. IS it?
Or in my case, its syntax error
Joined: 12 Feb 2005
Posts: 8
PHP-OOP no of objects limit????
If you are using 100 objects in a single web page then you are doing
something seriously wrong. How many "objects" does a single web page need?
Tony Marston
mailto:tony@...
mailto:TonyMarston@...
http://www.tonymarston.net <http://www.tonymarston.net/>
-----Original Message-----
From: h_tere2000 [mailto:h_tere2000@...]
Sent: 05 April 2005 05:55
To: php-objects@yahoogroups.com
Subject: [php-objects] PHP-OOP no of objects limit????
Pardon me, if this sounds silly. But I`ve have to ask anyway.
Is there a limit to how many objects that can be declared and executed
using PHP?
I seem to have declared almost a hundred and somewhere along the way,
my later objects seem to stop initializing their classes and
projecting their values to their respective places, while the earlier
ones work fine.
I know its silly because surely you can call for example,
over a thousand object in turn a longer duration process time. IS it?
Or in my case, its syntax error
PHP Data object relational mapping generator - http://www.meta-language.net/
_____
Yahoo! Groups Links
* To visit your group on the web, go to:
http://groups.yahoo.com/group/php-objects/
* To unsubscribe from this group, send an email to:
php-objects-unsubscribe@yahoogroups.com
<mailto:php-objects-unsubscribe@yahoogroups.com?subject=Unsubscribe>
* Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service
<http://docs.yahoo.com/info/terms/> .
[Non-text portions of this message have been removed]
Joined: 05 Apr 2005
Posts: 8
PHP-OOP no of objects limit????
I thought using oop to code my webpage might be cool
and efficient..but now i`m having doubts
--- Tony Marston <tony@...>
wrote:
> If you are using 100 objects in a single web page
> then you are doing
> something seriously wrong. How many "objects" does a
> single web page need?
>
> Tony Marston
> mailto:tony@...
> mailto:TonyMarston@...
> http://www.tonymarston.net
> <http://www.tonymarston.net/>
>
> -----Original Message-----
> From: h_tere2000 [mailto:h_tere2000@...]
> Sent: 05 April 2005 05:55
> To: php-objects@yahoogroups.com
> Subject: [php-objects] PHP-OOP no of objects
> limit????
>
>
>
>
> Pardon me, if this sounds silly. But I`ve have to
> ask anyway.
>
> Is there a limit to how many objects that can be
> declared and executed
> using PHP?
>
> I seem to have declared almost a hundred and
> somewhere along the way,
> my later objects seem to stop initializing their
> classes and
> projecting their values to their respective places,
> while the earlier
> ones work fine.
>
> I know its silly because surely you can call for
> example,
> over a thousand object in turn a longer duration
> process time. IS it?
>
> Or in my case, its syntax error
>
>
>
>
>
>
>
>
>
> PHP Data object relational mapping generator -
> http://www.meta-language.net/
>
>
>
>
> _____
>
> Yahoo! Groups Links
>
>
> * To visit your group on the web, go to:
> http://groups.yahoo.com/group/php-objects/
>
>
> * To unsubscribe from this group, send an email to:
> php-objects-unsubscribe@yahoogroups.com
>
<mailto:php-objects-unsubscribe@yahoogroups.com?subject=Unsubscribe>
>
>
>
> * Your use of Yahoo! Groups is subject to the Yahoo!
> Terms of Service
> <http://docs.yahoo.com/info/terms/> .
>
>
>
>
> [Non-text portions of this message have been
> removed]
>
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
[Non-text portions of this message have been removed]
Joined: 12 Feb 2005
Posts: 8
PHP-OOP no of objects limit????
Using OOP is only cool and efficient if you know what you`re doing. You have
to know the difference between "objects" and "properties". An object such as
INVOICE has a collection of properties such as INVOICE_DATE and
INVOICE_AMOUNT. It should be obvious that you do not create an object for
what is actually a property of an object.
Tony Marston
mailto:tony@...
mailto:TonyMarston@...
http://www.tonymarston.net <http://www.tonymarston.net/>
-----Original Message-----
From: jkl hjk [mailto:h_tere2000@...]
Sent: 05 April 2005 14:32
To: php-objects@yahoogroups.com
Subject: RE: [php-objects] PHP-OOP no of objects limit????
I thought using oop to code my webpage might be cool
and efficient..but now i`m having doubts
--- Tony Marston <tony@...>
wrote:
> If you are using 100 objects in a single web page
> then you are doing
> something seriously wrong. How many "objects" does a
> single web page need?
>
> Tony Marston
> mailto:tony@...
> mailto:TonyMarston@...
> http://www.tonymarston.net
> <http://www.tonymarston.net/>
>
> -----Original Message-----
> From: h_tere2000 [mailto:h_tere2000@...]
> Sent: 05 April 2005 05:55
> To: php-objects@yahoogroups.com
> Subject: [php-objects] PHP-OOP no of objects
> limit????
>
>
>
>
> Pardon me, if this sounds silly. But I`ve have to
> ask anyway.
>
> Is there a limit to how many objects that can be
> declared and executed
> using PHP?
>
> I seem to have declared almost a hundred and
> somewhere along the way,
> my later objects seem to stop initializing their
> classes and
> projecting their values to their respective places,
> while the earlier
> ones work fine.
>
> I know its silly because surely you can call for
> example,
> over a thousand object in turn a longer duration
> process time. IS it?
>
> Or in my case, its syntax error
>
>
>
>
>
>
>
>
>
> PHP Data object relational mapping generator -
> http://www.meta-language.net/
>
>
>
>
> _____
>
> Yahoo! Groups Links
>
>
> * To visit your group on the web, go to:
> http://groups.yahoo.com/group/php-objects/
>
>
> * To unsubscribe from this group, send an email to:
> php-objects-unsubscribe@yahoogroups.com
>
<mailto:php-objects-unsubscribe@yahoogroups.com?subject=Unsubscribe>
>
>
>
> * Your use of Yahoo! Groups is subject to the Yahoo!
> Terms of Service
> <http://docs.yahoo.com/info/terms/> .
>
>
>
>
> [Non-text portions of this message have been
> removed]
>
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
[Non-text portions of this message have been removed]
PHP Data object relational mapping generator - http://www.meta-language.net/
_____
Yahoo! Groups Links
* To visit your group on the web, go to:
http://groups.yahoo.com/group/php-objects/
* To unsubscribe from this group, send an email to:
php-objects-unsubscribe@yahoogroups.com
<mailto:php-objects-unsubscribe@yahoogroups.com?subject=Unsubscribe>
* Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service
<http://docs.yahoo.com/info/terms/> .
[Non-text portions of this message have been removed]
Joined: 05 Apr 2005
Posts: 11
PHP-OOP no of objects limit????
Well, yeah, but even in your example, both of those properties could be
objects. Invoice date might be better expressed as an object if you need to
calculate information against it - how many days overdue, how many days
until the next invoice should be issued etc.
Same for amount - if you conduct business in multiple currencies, it might
be better to use an object for the amount so currency conversion can be done
in a method.
I would probably do it the way you suggest, but I`ve found that there are
times when it its useful to use objects for even values that at first blush
seem best expressed as primitives.
-Derek
> -----Original Message-----
> From: Tony Marston [mailto:tony@...]
> Sent: Tuesday, April 05, 2005 8:26 AM
> To: php-objects@yahoogroups.com
> Subject: RE: [php-objects] PHP-OOP no of objects limit????
>
>
>
> Using OOP is only cool and efficient if you know what you`re
> doing. You have
> to know the difference between "objects" and "properties". An
> object such as
> INVOICE has a collection of properties such as INVOICE_DATE and
> INVOICE_AMOUNT. It should be obvious that you do not create
> an object for
> what is actually a property of an object.
>
> Tony Marston
> mailto:tony@...
> mailto:TonyMarston@...
> http://www.tonymarston.net <http://www.tonymarston.net/>
>
> -----Original Message-----
> From: jkl hjk [mailto:h_tere2000@...]
> Sent: 05 April 2005 14:32
> To: php-objects@yahoogroups.com
> Subject: RE: [php-objects] PHP-OOP no of objects limit????
>
>
> I thought using oop to code my webpage might be cool
> and efficient..but now i`m having doubts
>
> --- Tony Marston <tony@...>
> wrote:
> > If you are using 100 objects in a single web page
> > then you are doing
> > something seriously wrong. How many "objects" does a
> > single web page need?
> >
> > Tony Marston
> > mailto:tony@...
> > mailto:TonyMarston@...
> > http://www.tonymarston.net
> > <http://www.tonymarston.net/>
> >
> > -----Original Message-----
> > From: h_tere2000 [mailto:h_tere2000@...]
> > Sent: 05 April 2005 05:55
> > To: php-objects@yahoogroups.com
> > Subject: [php-objects] PHP-OOP no of objects
> > limit????
> >
> >
> >
> >
> > Pardon me, if this sounds silly. But I`ve have to
> > ask anyway.
> >
> > Is there a limit to how many objects that can be
> > declared and executed
> > using PHP?
> >
> > I seem to have declared almost a hundred and
> > somewhere along the way,
> > my later objects seem to stop initializing their
> > classes and
> > projecting their values to their respective places,
> > while the earlier
> > ones work fine.
> >
> > I know its silly because surely you can call for
> > example,
> > over a thousand object in turn a longer duration
> > process time. IS it?
> >
> > Or in my case, its syntax error
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > PHP Data object relational mapping generator -
> > http://www.meta-language.net/
> >
> >
> >
> >
> > _____
> >
> > Yahoo! Groups Links
> >
> >
> > * To visit your group on the web, go to:
> > http://groups.yahoo.com/group/php-objects/
> >
> >
> > * To unsubscribe from this group, send an email to:
> > php-objects-unsubscribe@yahoogroups.com
> >
> <mailto:php-objects-unsubscribe@yahoogroups.com?subject=Unsubscribe>
> >
> >
> >
> > * Your use of Yahoo! Groups is subject to the Yahoo!
> > Terms of Service
> > <http://docs.yahoo.com/info/terms/> .
> >
> >
> >
> >
> > [Non-text portions of this message have been
> > removed]
> >
> >
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> [Non-text portions of this message have been removed]
>
>
>
> PHP Data object relational mapping generator -
> http://www.meta-language.net/
>
>
>
>
> _____
>
> Yahoo! Groups Links
>
>
> * To visit your group on the web, go to:
> http://groups.yahoo.com/group/php-objects/
>
>
> * To unsubscribe from this group, send an email to:
> php-objects-unsubscribe@yahoogroups.com
> <mailto:php-objects-unsubscribe@yahoogroups.com?subject=Unsubscribe>
>
>
> * Your use of Yahoo! Groups is subject to the Yahoo!
> Terms of Service
> <http://docs.yahoo.com/info/terms/> .
>
>
>
>
> [Non-text portions of this message have been removed]
>
>
>
> PHP Data object relational mapping generator -
> http://www.meta-language.net/
> Yahoo! Groups Links
>
>
>
>
>
>
All times are GMT
Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Freelace Website Designer - Customer web design and software building.
China Wholesale - Electronics Products
Character Studio - Tutorials and Help
China Wholesale - Electronics Products
Character Studio - Tutorials and Help







