newbie, help me!

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
Hello all,
Imagine i have a class in php, and differents users create their
instances of my class. These instances will be visibles between each
other? Someone explain how php will manage this, and how i should
acces these differents instances.


Re: newbie, help me!

Alejandro wrote:
Quoted text here. Click to load it

if you're running PHP 5....

access modifiers:  public, private, protected, final can be

also, look into using an interface

Re: newbie, help me!


Quoted text here. Click to load it


You should read about how HTTP and PHP work. Each request is completely
independent from each other. There could be a hundred users on your site
at the same time (assuming your server could handle that) - each one has
his own connection to the server, his own session, more or less his own
PHP interpreter and his own instance of your class.


Site Timeline