RE: [PHP] Class Help Extended

2004-05-06 Thread PHP Email List
-Original Message- > From: Curt Zirzow [mailto:[EMAIL PROTECTED] > Sent: Thursday, May 06, 2004 2:13 PM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] Class Help Extended > > > * Thus wrote Rob Adams ([EMAIL PROTECTED]): > > > > "Php Email List"

Re: [PHP] Class Help Extended

2004-05-06 Thread Curt Zirzow
* Thus wrote Rob Adams ([EMAIL PROTECTED]): > > "Php Email List" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > $smiley = ":)"; > > include_once(evil_laugh.php); > > echo $laugh $smiley; > > //Echo'd: Muuuhahahahahah :) > > You're syntax is a little off here. You need to use:

Re: [PHP] Class Help Extended

2004-05-06 Thread Rob Adams
"Php Email List" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > $smiley = ":)"; > include_once(evil_laugh.php); > echo $laugh $smiley; > //Echo'd: Muuuhahahahahah :) You're syntax is a little off here. You need to use: echo $laugh . $smiley; or echo "$laugh $smiley"; -- Rob -

Re: [PHP] Class Help Extended

2004-05-06 Thread Torsten Roehr
"Richard Harb" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > More often than not it's a good thing to assign 'default' values to > class variables like that. > > In this case though I've observed that common practice is to get the > user/pass values from a config file and pass them

RE: [PHP] Class Help Extended

2004-05-06 Thread PHP Email List
> More often than not it's a good thing to assign 'default' values to > class variables like that. > > In this case though I've observed that common practice is to get the > user/pass values from a config file and pass them along as variables > when creating an instance of the class. > > Classes ar

Re: [PHP] Class Help Extended

2004-05-05 Thread Richard Harb
More often than not it's a good thing to assign 'default' values to class variables like that. In this case though I've observed that common practice is to get the user/pass values from a config file and pass them along as variables when creating an instance of the class. Classes are most benefic