[PHP] Warnings w/ !$var!?

2001-04-20 Thread Nicholas Pappas
I just installed PHP4 on a Windows 2000 box (tried it both as CGI and ISAPI) and am getting a very annoying behavior from it, that I do not see on my installation in Linux. When I check a variable (say, in a if() statement) via !$var, I get a Warning message printed saying that

[PHP] Getting ASPELL to work?

2001-02-07 Thread Nicholas Pappas
Is there a secret to get the 'aspell_*' functions to work? I tried running one and got a 'unsupported function' error. :( I am running a RH7.0 system with PHP3. Aspell is installed on the system, but I did not do anything special at compile time (except MySQL support). Is th

[PHP] preg_replace pain!

2001-01-17 Thread Nicholas Pappas
I was hoping someone could help me with this regular expression... $pattern = "/\[b\](.*)\[\/b\]/Ui"; $message = preg_replace($pattern, "\\1", $message); The above works for: [b]bold text[/b] But does not work for: [b]bold text w/