Hallo Eduard.
//Smileykonfiguration holen
$import=file_get_contents("gb/smiley_conf.dat");//Einlesen
$smiley_array=explode("\n",$import);
Diese beiden Schritte kannst du per [file](http://de2.php.net/manual/de/function.file.php) zusammen fassen.
> ~~~php
for($x=0;$x<count($smiley_array);$x++){
> foreach($smiley_array[$x] as $smile){
> $text = str_replace($smile,$smiley_array[$x][0],$text);
> return $text;
> }
> }
Schau dir die Schleife einmal genau an und überlege, wo sie beendet wird. Momentan läuft sie nur ein einziges Mal durch.
Einen schönen Sonntag noch.
Gruß, Ashura
--
sh:( fo:} ch:? rl:( br: n4:~ ie:{ mo:| va:) de:> zu:} fl:( ss:) ls:[ js:|
„It is required that HTML be a common language between all platforms. This implies no device-specific markup, or anything which requires control over fonts or colors, for example. This is in keeping with the SGML ideal.“
[HTML Design Constraints: Logical Markup]
sh:( fo:} ch:? rl:( br: n4:~ ie:{ mo:| va:) de:> zu:} fl:( ss:) ls:[ js:|
„It is required that HTML be a common language between all platforms. This implies no device-specific markup, or anything which requires control over fonts or colors, for example. This is in keeping with the SGML ideal.“
[HTML Design Constraints: Logical Markup]