You are here: Re: PHP 5 & OO « PHP Programming Language « IT news, forums, messages
Re: PHP 5 & OO

Posted by Ramon on 08/25/05 03:30

Colin McKinnon wrote:
> Ramon wrote:
>
>
>>Hello all,
>>
>>Over the last couple of month, since the release of PHP 5 I have been
>>involved in a number of heated discussions which sometimes reduced them
>>selves to blatant name calling and an occasional deodorant throw, which
>>if I mad add, was precisily aimed at my head.
>
>
> Sounds like you deserved it Ramon ;)

Yes, probably did.

>
>
>>The only mechanic in PHP to transcend this problem at the moment is with
>>the use of Sessions,
>
>
> No. An object can be treated as a piece of data. Since you're using PHP5,
> you don't even have to worry about ensuring the class is loaded before
> de-serializing the object. The object can be stored in a file, in a
> database, in a form field....just about anywhere (except maybe a cookie -
> 'cos of the size).
>

Thats exactly write, but what you are saying is that every time I want
to interact with an object I have to read io or right? not memory. And
say my project has good 70 objects, some of them very large, and a 1000
users concurently browsing. So in theory every time a user loads a page
I have to load some or all of those? Times the number of users... and
you are saying there isnt a performance hit involved? You must be kidding.

>>and what if this
>>PHP application had thousands of concurrent users? Would you have to
>>iterate though all the *session* files to find the one with that object
>>open? Yes, you would.
>
>
> Whoa - you mean you have a class which can onlybe instantiated by a single
> user? And you want to access other peoples sessions from within your code?
> Where's my deoderant can - no, make that a brick.
>
No, I want if you took the time to read my post with abit less gusto,
you would understand that my question is: "How can I have two or more
users using the same object at the same time?"

> Never written a large PHP application Ramon?
>

Should have thought that even a humarous approach to a reasonable
question would be met with hostility and anger. It's a news group after
all. And yes, I have written alot of large scale applications.


> Hey man your post sucks!

That I know.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация