[PHP] unexpected T_STRING parse error

2006-10-10 Thread Ilaria De Marinis
short_open_tag to off in php.ini, but I got a bad page visualization. In fact it's visible also source code while displaying pages. Any ideas? Thank in advance Ilaria -- De Marinis Ilaria Settore Automazione Biblioteche Phone: +3906-44486052 CASPUR - Via dei

Re: [PHP] unexpected T_STRING parse error

2006-10-10 Thread Ilaria De Marinis
It's impossible for me to make this change. xml files are packaged in external modules. I can't manipulate them! Penthexquadium wrote: On Tue, 10 Oct 2006 09:18:18 +0200, Ilaria De Marinis [EMAIL PROTECTED] wrote: Hi list, I got a php error in my apache log: PHP Parse error: parse error

Re: [PHP] ereg_replace with unser defined function?

2006-10-09 Thread Ilaria De Marinis
Hi Frank, I think preg_replace_callback is a good solution for you. If you don't want to use it, you can construct two arrays defining matches and replacements. For example: $matches [230] [120] [340] $replacements [9.1] [replace2] [replace3] After you stored matches in $matches using