Page 1 of 1

Meaning of Life

Posted: Sun May 18, 2003 8:52 pm
by McGruff
Php is pretty capable but can it work out the meaning of life?

I started off writing a complex class to parse religious texts, great works of literature, and transcripts of the Jerry Springer show but it started showing signs of its own artificial intelligence and argued constantly so I had to delete it.

So then I tried:

Code: Select all

<?php
function askGod() {

   echo 'What is the meaning of life, God?';
   echo 'Hello? Is anybody listening?';
   echo 'Look I haven''t got all day you know..';

}
?>
But I kept getting "deity not defined" errors and no output.

Then it hit me:

Code: Select all

<?php

function meaningofLife() {

    $meaning_of_life = 7 * 6;
    return $meaning_of_life;

}
?>
Success! And all in just a few lines of code!

The doctor says I have to go now.

Posted: Mon May 19, 2003 6:13 am
by []InTeR[]
About your artificial intelligence experience, i had allmost the same.....

Once i had written a program with artificial intelligence like human people have.

When i runed it, it try'ed to find out what programming language it was, after some hour's he discoverd it. Then he was looking for his creator, but without any webcam, mic in or some other communications was any attemt useless. After this, he try'd to caculate the change that he was created random. After 3 years, he found out it's a to big change. So he coudn't exist becouse there was no reason, and deleted himself.

Damm, where are backups when you need them.....

Re: Meaning of Life

Posted: Fri May 23, 2003 3:12 pm
by hob_goblin
McGruff wrote: $meaning_of_life = 7 * 6;

8O *gets his towel*

Posted: Fri May 23, 2003 3:19 pm
by daven
42 is not the meaning of life. It is the answer to the ultimate question.

"The Meaning of Life" is a Monty Python movie.

So there.

Posted: Fri May 23, 2003 11:28 pm
by m3mn0n
The meaning of life may only be found when life is no longer around

Posted: Wed May 28, 2003 6:23 pm
by patrikG
Try this or, of course, the manual.

I know, it's all too obvious. :roll: