[PHP] LDAP and PHP

2003-11-11 Thread Dave Dash
I'm having trouble getting LDAP to work with PHP. ldap_connect results in: Fatal error: Call to undefined function: ldap_connect() in /home/davedash/public_html/ldap.php on line 3 and when I compiled I enabled --enable-ldap. Am I missing something else here? I've got openldap installed as wel

[PHP] Re: ereg

2003-09-12 Thread Dave Dash
I think this is a lot more complicated than somethign a simple regular expression can handle. You would need to do soemthign that reads the entire file, up until the first occurrence of your '//' and in the meantime do a count that checks to make sure all the quotes are closed. I'd be interested

Re: [PHP] Looking for a real good editor with some specificfeatrues ...

2003-09-12 Thread Dave Dash
"Dan Anderson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > 60% of what makes an editor good is familiarity. Take emacs for > instance (http://www.gnu.org/software/emacs/emacs.html). Running PHP > Mode (http://sourceforge.net/projects/php-mode/) I fly through code. > But I've al

[PHP] Re: PREG-pattern, help needed

2003-09-11 Thread Dave Dash
Hi Tobias, This matches more than you'd like because [td] will match anything that has a t in it or a d in it. More generally anything in brackets means the RegExp will try to match something from that set. What you might want is this: preg_replace('/]*>/i', ""); The preg replaces or to what

[PHP] Re: No answers found - Why var and why & ?

2003-09-11 Thread Dave Dash
var $varname before a constructor is just conventional syntax when defining a class. class myClass { var $myThis; function myClass() { } } I'm sure you can do this another way, but it just makes reading the class very easy, and it defines those variables for the entire scope of the class. -dd

[PHP] Re: Single Quotes vs Double Quotes

2003-09-11 Thread Dave Dash
With all that's been said in mind ('$var' unparsed "$var" parsed). The rule of thumb I follow is, if it needs to be parsed (has a $variable or \n \r \t etc) then used double quotes, otherwise use single quotes... it conserves processing. -dd "Micro Brew" <[EMAIL PROTECTED]> wrote in message new

[PHP] Re: Creating a Calender

2003-09-08 Thread Dave Dash
I've got a few elementry classes that might help, I think you just need to instantiate the class and then run the display method. "Dan Anderson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Does anybody know how to generate calendars easily? (i.e. print out > complete calenders