<?php, it looks as though there is a space there 
<?php, it looks as though there is a space there 


<?php
$quotes =
"It takes a big man to cry, but it takes a bigger man to laugh at that man.
After an incident in Croydon involving a police van and a concrete mixer, police are looking for eighteen hardened criminals.
Psychology: Mind over matter. Mind under matter? It doesn\'t matter. Never mind.
Right now I\'m having amnesia and deja vu at the same time - I think I\'ve forgotten this before...
I love giving opinions, I\'ve got thousands.
Someday, you\'ll look back on this topic, laugh nervously and change the subject.
I don\'t suffer from insanity, I enjoy every minute of it.
For my birthday I got a humidifier and a de-humidifier... I put them in the same room and let them fight it out.
You know, 50% of doctors graduated in the BOTTOM HALF of their class.
Nobody can get the truth out of me because even I don\'t know what it is. I keep myself in a constant state of utter confusion.
Any connection between your reality and mine is purely coincidental.";
$split_array = explode("\n", $quotes);
$rand_keys = array_rand($split_array, 1);
header("content-type: application/x-javascript");
echo "<!--\n
document.write('{$split_array[$rand_keys]}');\n
//-->";
?>






Tikva wrote:Huh? Me confused.......




<?php
$quotes = 'Random Text 01
Random Text 02
Random Text 03
Random Text 04
Random Text 05
Random Text 06';
$split_array = explode("\n", $quotes);
$rand_keys = array_rand($split_array, 1);
header("content-type: application/x-javascript");
echo "<!--\n
document.write('{$split_array[$rand_keys]}');\n
//-->";
?>







Return to phpBB3 Coding Assistance
Users browsing this forum: contemporary2, Ezooms Bot and 10 guests