Hi,
I've got a problem with displaying a random piece of text. The construction of my webpage is as follows: In main.php a file called jokes_page.dat is included. jokes_page.dat looks like this:
<?php
//put the jokes into an array
$joke_array = explode ("##########", jokes.dat);
//randomize the array
shuffle ($joke_array);
$title = "Jokes Page";
$content = "Random Joke:<BR><BR>$joke_array";
?>
jokes.dat contains the jokes, devided by ##########. In the main page I then echo $title and $content. The problem I'm encountering is that instead of the random joke the word 'Array' is displayed ... I have no idea why this happens. Any suggestions?
Thanx Michiel