PHP Chat
Yme-Jan
24/04/2005 17:22:00ik heb nu dit:
Code (php)
1
2
3
4
5
6
7
8
9
10
2
3
4
5
6
7
8
9
10
<?
$buddy = file_get_contents("/usr/opt/usr/wa4o6920633/DOMAIN/HTML/a4o.chat/members/" . $_SESSION['chat'] . "/buddy.txt");
$var = "$buddy";
$var = explode("£", $var);
$limit = count($var);
for($i = 0; $i < $limit; $i++){
echo "ding: " . $var['$i'] . "<br>";
}
?>
$buddy = file_get_contents("/usr/opt/usr/wa4o6920633/DOMAIN/HTML/a4o.chat/members/" . $_SESSION['chat'] . "/buddy.txt");
$var = "$buddy";
$var = explode("£", $var);
$limit = count($var);
for($i = 0; $i < $limit; $i++){
echo "ding: " . $var['$i'] . "<br>";
}
?>
PHP hulp
18/12/2024 08:54:51Yme-Jan
24/04/2005 17:41:00Jelmer -
24/04/2005 17:50:00Indien je geen limiet op het aantal weergegeven gebruikers hoeft + debug:
Yme-Jan
24/04/2005 18:49:00Yme-Jan
24/04/2005 18:54:00probleem opgelost:
$var = explode("£", $buddy);
foreach($var as $user){
echo "ding: " . $user . "<br>\n";
}
$var = explode("£", $buddy);
foreach($var as $user){
echo "ding: " . $user . "<br>\n";
}