Click to See Complete Forum and Search --> : problems with replacing data


Anon
05-02-2001, 07:50 AM
hi there,

one, i hope small problem, i installed my php scripts on different servers, win98, win2000 and linux. it functions everywhere. But with a new linux one i have a little problem and i dont know what to do.

there is a piece of code that like the following:

$design=ereg_replace("{_teaser_}", rightbox($index), $design);

this should replace the {_teaser_} with the output of the rightbox function. Like i said it usually works withou any problem. But a new apache on a cobalt raq brings me the following warning:

Warning: Invalid content of \{\} in /home/sites/home/web/private/sys/grillfreunde/index.lw on line 17


it seems that he dont like the {} brackets. does anybody know what to do ???
one thing is that i thought the error level would be causinbg this problem, but is is set to

error_reporting = E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR ; show only errors

please help me,

thanx inadvance,

Andreas

Anon
05-02-2001, 07:51 AM
do i have to reboot the linux apache to see changes in the php.ini ? on win98 i dont have to, but on linux i dont know ???

Anon
05-02-2001, 08:33 AM
hi there

i have a kind of an answer to half of the question. at first i have to restart apache. second the problem is the {} i have to get around by using \ before the } or the {.

but why is this the only server who has a problem with tthis kind of brackets, like i said, i use the same script on different servers. and all of the other dont have any problem with this.

is there any switch in the apache.conf or php.ini ???