[PHP] Problem with header()

2001-09-06 Thread Stonix
Hi, Can anyone tell me why header cannot been used after any network operation? In my script, there are following steps: 1).a socket is opened for smtp; 2).send email; 3).closed the socket; 4).use header() to redirect to another page. If no 1), 2) and 3), 4) can be processed without any pro

[PHP] problem with ereg() and ereg_replace()

2001-09-01 Thread Stonix
Hi, I have a strange problem with ereg() and ereg_replace(). I have a Linux RH 7.1 machine running apache and php4. On this server, if use ereg() or ereg_replace() with "{" or "}", for example, ereg_replace( "{key}", "word", $a_string); The web server will return following warnning msg: Warn