Pedagogisch Adviesbureau De Opstap $number-1){ // If ran out of quotes, start again! $num=0; } $num1 = file($directory.$quotecountfile); $num1 = $num1[0]+1; if($num1>$number1-1){ // If ran out of quotes, start again! $num1=0; } $num2 = file($directory.$quotecountfile); $num2 = $num2[0]+1; if($num2>$number2-1){ // If ran out of quotes, start again! $num2=0; } if (file_exists($directory.$quotecountfile)) { $nu = fopen ($directory.$quotecountfile, "w"); fputs($nu,$num); } else { die("Cant Find $quotecountfile"); } if (file_exists($directory.$quotecountfile)) { $nu = fopen ($directory.$quotecountfile, "w"); fputs($nu,$num1); } else { die("Cant Find $quotecountfile"); } if (file_exists($directory.$quotecountfile)) { $nu = fopen ($directory.$quotecountfile, "w"); fputs($nu,$num2); } else { die("Cant Find $quotecountfile"); } } // display the quote on the page echo "$quotes[$num]

"; echo "$quotes1[$num1]

"; echo "$quotes2[$num2]

"; ?>
Lees meer quotes...