Sorry
Kurzer Auszug aus der aktuellen chars.php:
Und das eigentliche Script sieht zur Zeit so aus:
Was mir jetzt ein wenig seltsam erscheint. Auf dem Server eines Freundes (auch Linux und gleiche PHP Version) funktioniert das Script...
Grüße
Christian
Kurzer Auszug aus der aktuellen chars.php:
PHP:
$html["A"]="
<table border=\"1\" cellspacing=\"2\" bordercolor=\"#CCCCCC\">
<tr>
<td width=\"40\" height=\"15\"> </td>
<td width=\"40\" height=\"15\" bgcolor=\"#000000\"> </td>
<td width=\"40\" height=\"15\" bgcolor=\"#000000\"> </td>
<td width=\"40\" height=\"15\"> </td>
</tr>
<tr>
<td width=\"40\" height=\"15\"> </td>
<td width=\"40\" height=\"15\" bgcolor=\"#000000\"> </td>
<td width=\"40\" height=\"15\" bgcolor=\"#000000\"> </td>
<td width=\"40\" height=\"15\"> </td>
</tr>
<tr>
<td width=\"40\" height=\"15\" bgcolor=\"#000000\"> </td>
<td width=\"40\" height=\"15\"> </td>
<td width=\"40\" height=\"15\"> </td>
<td width=\"40\" height=\"15\" bgcolor=\"#000000\"> </td>
</tr>
<tr>
<td width=\"40\" height=\"15\" bgcolor=\"#000000\"> </td>
<td width=\"40\" height=\"15\"> </td>
<td width=\"40\" height=\"15\"> </td>
<td width=\"40\" height=\"15\" bgcolor=\"#000000\"> </td>
</tr>
<tr>
<td width=\"40\" height=\"15\" bgcolor=\"#000000\"> </td>
<td width=\"40\" height=\"15\" bgcolor=\"#000000\"> </td>
<td width=\"40\" height=\"15\" bgcolor=\"#000000\"> </td>
<td width=\"40\" height=\"15\" bgcolor=\"#000000\"> </td>
</tr>
<tr>
<td width=\"40\" height=\"15\" bgcolor=\"#000000\"> </td>
<td width=\"40\" height=\"15\"> </td>
<td width=\"40\" height=\"15\"> </td>
<td width=\"40\" height=\"15\" bgcolor=\"#000000\"> </td>
</tr>
<tr>
<td width=\"40\" height=\"15\" bgcolor=\"#000000\"> </td>
<td width=\"40\" height=\"15\"> </td>
<td width=\"40\" height=\"15\"> </td>
<td width=\"40\" height=\"15\" bgcolor=\"#000000\"> </td>
</tr>
</table>
Und das eigentliche Script sieht zur Zeit so aus:
PHP:
function atari($str){
include ("chars.php");
//$str = strtolower($str);
$buchstaben = preg_split('//', $str, -1, PREG_SPLIT_OFFSET_CAPTURE);
echo ("<table><tr>");
foreach($buchstaben as $buchstabe){
echo "<td>".$html[$buchstabe]."</td><td>".$html["leer"]."</td>";
}
echo ("</table></tr>");
}
$sms="HALLO";
atari($sms);
Was mir jetzt ein wenig seltsam erscheint. Auf dem Server eines Freundes (auch Linux und gleiche PHP Version) funktioniert das Script...
Grüße
Christian