von newtopblog |
I really like what Nigel said to Angelia in the film.
When your personal life is gone, remember to notify me, it means you are going to be promoted.
I very much agree with this sentence, life and work, we choose to work because of life, and work makes us neglect life.
When you want to get promoted, you have to sacrifice more of your private time to work.
Choice is a very interesting thing, and when you make a choice, it also means that you will lose something very pity.
how to get sponsored for running
A very interesting website |
von Rogantinno |
Thank u for info |
von Klaus1973 |
Das bringt doch nichts? Damit wird lediglich der JavaScript-Code per PHP (also bevor die Seite überhaupt geladen ist) erzeugt, aber er will ja, dass ein PHP-Script auf Knopfdruck ausgeführt wird.
|
von Tainor |
Ich habe folgenden Script:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20: | <?php
$allusers = scandir('data/users');
foreach ($allusers as $useremail) {
if($useremail == "." or $useremail == ".." or $useremail == "testing@testing.testing") { } else {
echo "<div id='".file_get_contents("data/users/$useremail/name.txt")."'><h3>".file_get_contents("data/users/$useremail/name.txt")."</h3>";
echo "Gewonnen: ".file_get_contents("data/users/$useremail/stats/wins.txt")."<br>";
echo "Verloren: ".file_get_contents("data/users/$useremail/stats/loses.txt")."<br>";
echo "Unentschieden: ".file_get_contents("data/users/$useremail/stats/draws.txt")."<br>";
echo "Reaktorzerstörungen: ".file_get_contents("data/users/$useremail/stats/reactor.txt")."<br>";
echo "Helden getötet: ".file_get_contents("data/users/$useremail/stats/herokills.txt")."<br>";
echo "Glue Assists: ".file_get_contents("data/users/$useremail/stats/glues.txt")."<br>";
echo "W/V: ";
$wins = file_get_contents("data/users/$useremail/stats/wins.txt"); $loses = file_get_contents("data/users/$useremail/stats/loses.txt"); if($wins == "0" and $loses == "0" or $wins == "1" and $loses == "0") { if($wins == "1" and $loses == "0") { echo "1"; } else { echo "0"; } } else { echo $wins / $loses; }
echo "</div>";
}
};
?> |
Und nun will ich, dass die Ausgabe nach der W/V sortiert ist:
1:
2: | echo "W/V: ";
$wins = file_get_contents("data/users/$useremail/stats/wins.txt"); $loses = file_get_contents("data/users/$useremail/stats/loses.txt"); if($wins == "0" and $loses == "0" or $wins == "1" and $loses == "0") { if($wins == "1" and $loses == "0") { echo "1"; } else { echo "0"; } } else { echo $wins / $loses; } |
Ist das möglich, oder nicht? |
|