[PHP] class help (PLEASE)

2004-07-25 Thread PHP Gen
Hi, After searching the archives and google I found a class that does bb code conversions, although I know how to use classes (thanks to the docs the writers write) I dont really understand them too well. The class is REALLY good and covers all my needs (which is to display php code in colors) but

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

[PHP] Class Help Extended

2004-05-05 Thread PHP Email List
First off thanks Curt for the attempt at explaining what the purpose was for those, I'm convinced enough to start doing that since that's what the "pros" use. :) However, I know have another concern. As for as class security. Is it wrong to initialize the static variables for my database assignmen

Re: [PHP] Class Help

2004-05-05 Thread Curt Zirzow
* Thus wrote PHP Email List ([EMAIL PROTECTED]): > Why is it in a class, so important for you to initialize your $variables? > > In the following example, I have my class started and then took out or > atleast commented my "var $variable" and the code still does what it should. > So why is it so i

[PHP] Class Help

2004-05-05 Thread PHP Email List
Why is it in a class, so important for you to initialize your $variables? In the following example, I have my class started and then took out or atleast commented my "var $variable" and the code still does what it should. So why is it so important that you initialize these variables this way? [::

Re: [PHP] class help

2001-09-17 Thread Rasmus Lerdorf
list() is a built-in PHP function. by the way, PHP already has a directory class. See http://php.net/dir -Rasmus On Tue, 18 Sep 2001, Cameron Brunner wrote: > im going crazy here trying to get this code to work, its complaining on > line 38 but i can see any problems with the file, any sugges

[PHP] class help

2001-09-17 Thread Cameron Brunner
im going crazy here trying to get this code to work, its complaining on line 38 but i can see any problems with the file, any suggestions? Cameron base_dir = $base_dir; return (bool) true; } else { return (bool) false;