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
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
"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
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
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
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
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
7 matches
Mail list logo