| Advertentie | |
|
|
|
|
|
|
|
Bedoel je zoiets??
Code:
<?
$textfile ="quotes.txt";
$quotes = file("$textfile");
$quote = rand(0, sizeof($quotes)-1);
echo $quotes[$quote];
?>
[Dit bericht is aangepast door Pukeboy (20-02-2002).] |
|
|
|
|
|
ok het is gelukt
dit is 'm geworden (voor de mensen die met hetzelfde probleem lopen in de toekomst Code:
<html>
<body>
<?php
$textfile ="quotes.txt";
$quotes = file("$textfile");
$quote = rand(0, sizeof($quotes)-1);
list ($voor, $tekst, $bron) = split ('[;]', $quotes[$quote]);
echo "$voor,<BR> $tekst,<BR> $bron";
?>
</body>
</html>
het werkt maar is het even goed??
__________________
-|-
|
|
|
|
||
|
Citaat:
|
||
| Advertentie |
|
|
![]() |
|
|
Soortgelijke topics
|
||||
| Forum | Topic | Reacties | Laatste bericht | |
| Onzin |
Werkende mensen, assemble! #25 zeehond23 | 500 | 24-09-2015 13:00 | |
| Software & Hardware |
[PHP] Sessions en include Fade of Light | 6 | 04-12-2004 11:57 | |
| Software & Hardware |
[PHP] Beveiligingslek... Verwijderd | 6 | 23-06-2004 19:47 | |
| Software & Hardware |
[PHP] Statistiekenscript Martin | 7 | 22-12-2003 11:23 | |
| Software & Hardware |
PHP 5.0.0 Beta 1 vrijgegeven! TouchOfDarkness | 14 | 01-07-2003 20:26 | |