you made perfect sense.

thanks a lot.

i found the article of php builder that said much the same thing but one of
the other guys in our team was adamant and said you have to instantiate the
class again.

winding back my brain to Uni i understood instantiate to be the bit where
the class is created via the constructor using new.

what you've suggested makes perfect sense. thanks again.

Steve

""Cal Evans"" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Yes.
>
> You can create your class, instantiate it and store it in the session like
> any other variable.  However. before you issue a Session_start() you MUST
> have already included the class definition in your page.  If you start the
> session and  have not, it will  throw an error because it will not know
how
> to use your class.
>
> Am I making sense? (I don't think the coffee has kicked in yet.)
>
> Cal
> http://www.calevans.com
>
>
> -----Original Message-----
> From: Steve Brett [mailto:[EMAIL PROTECTED]]
> Sent: Monday, March 26, 2001 6:59 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP-DB] classes and sessions
>
>
> hi,
>
> i'm busily rewriting an exisitng calendar system that is in use at work.
>
> we're using UML as a design tool and hope to have an OO version of the
> system we have at the minute that wil 'fit in' with future devs.
>
> our system at the moment makes heavy use of postgresql and i am hoping to
> populate various object from the data in the db.
>
> our system also relies on session for passing data between pages and the
> site as a whole.
>
> what i need to know is this in a kind of yes or no fashion:
>
> will php allow me to create a class and then have access to the class from
> other pages and scripts ?
>
>
> Steve Brett
> Internal Development
> EMIS Ltd.
>
> "Privileged and /or Confidential information may be contained in this
> message. If you are not the original addressee indicated in this message
(or
> responsible for delivery of the message to such person), you may not copy
or
> deliver this message to anyone. In such case, please delete this message,
> and notify us immediately. Opinions, conclusions and other information
> expressed in this message are not given or endorsed by my firm or employer
> unless otherwise indicated by an authorised representative independently
of
> this message."
>
> Egton Medical Information Systems Limited. Registered in England. No
> 2117205.
> Registered Office: Park House Mews, 77 Back Lane, Off Broadway, Horsforth,
> Leeds, LS18 4RF
>
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to