[PHP] quick question about preg_replace

2006-10-04 Thread Martin Bach Nielsen
Hi all. I have written a guestbook (I know, there's a ton out there), which until recently did not get any spam, so now I'm trying to remove the spam-ad by using preg_replace: $melding = preg_replace('/(

RE: [PHP] Override php.ini

2006-09-22 Thread Martin Bach Nielsen
http://us2.php.net/ini.core asp_tags boolean Enables the use of ASP-like <% %> tags in addition to the usual tags. This includes the variable-value printing shorthand of <%= $value %>. For more information, see Escaping from HTML. Note: Support for ASP-style tags was added in 3.0.4

[PHP] Help understanding/debugging the following script:

2006-09-21 Thread Martin Bach Nielsen
Hi all. If you look at the code below, the return() does not produce any output. No errors were displayed on screen before I added 'error_reporting(E_ALL);'. (Error message: Notice: Undefined variable: this in /oop/test1/index.php on line 35, commented on below) Trying to echo/print ordinary text