hi there,
i made a nice little script, which loads a template-file into a string, and then i replace some parts with the necessary info.
...well, it works perfect, EXCEPT at one point:
ereg_replace DOES work, but it doesnt do the replace! lol, sounds weird, but i checked if ereg_replace works, if so give me the output and the ouput is the same as before...
i tried everything so far, i even tried to get the part i want to be replaced in different ways, which all worked, but as soon as i try to replace it... no way!
so, heres my code-sniplet:
$get_ticket_whole = explode ("</TICKET_PART>",$staff_screen);
$get_ticket_whole = explode("<TICKET_PART>",$get_ticket_whole[0]);
$test = ereg_replace($get_ticket_whole[1],"",$staff_screen);
echo $test;
die;
if i call the $get_ticket_whole[1], it shows me the exact part of $staff_screen i need to get replaced, but the ereg_replace... no way!
is there any other way i can erase that part from my $staff_screen string?
...the funny thing is, that the above ereg_replace lies within an if-part, and the else, which also has an ereg_replace, works PERFECT!
lol, i am really goin crazy here... any help more than welcome
thx
Duncan McNuts