Hvor skal dette sættes ind?
Jeg skal ha lavet den her funktion i min chat:$besked = str_replace("/smil", "<img srv='smil.jpg'>",$besked);
Men hvor skal den sættes ind?
<html>
<META HTTP-EQUIV="Refresh" CONTENT="3; URL=chat.php">
<head>
<style>
<!--
A:link {text-decoration: none; color: #000000}
A:visited {text-decoration: none; color: #000000}
A:hover {text-decoration: none; color: #123456}
A:active {text-decoration: none; color: #123456}
-->
</style>
</head>
<body leftmargin="50" bgcolor="#ffffff">
<center>
<b><font face="Tahoma" size="1" color="#000000">
<div align="left">
<?
$fil = fopen("chat.beskeder", "r");
while (!feof($fil)){
$streng = fgets($fil, 2000);
echo $streng;
}
fclose($fil);
?>
<?
if($besked && $chatnavn){
$font = "<b><font face='$skrifttype' size='1' color='$farve'>";
$afslut = "</b></font>";
$navn = "<b><font color='$nfarve'>";
$nafslut = "</b>";
$fil = fopen("chat.beskeder", "a");
fwrite($fil, "$navn$chatnavn:$nafslut $font$besked$afslut<br>\n");
fclose($fil);
$fil = fopen("chat.history", "a");
fwrite($fil, "$navn$chatnavn:$nafslut $font$besked$afslut<br>\n");
fclose($fil);
$fil = ("chat.beskeder");
if (filesize($fil) > 2000) {
$fp = fopen($fil, "w");
fputs($fp, "");
fclose($fp);
}
}
?>
</b></font>
</div>
</body>
</html>
Håber der er en som er villig til at hjælpe!!!
