I am new to PHP and I am trying to create an application for a friend with a good sense of humor, the app takes quotes and randimly loads one when the page is loaded. I had no idea how to do it so I took some coading for a blackjack shuffle program and pluged in what i wanted. It worked for a little while and then I tried to add some more quotes and got an error that I cant explain. the code looks like it is right but I keep getting the error:
Parse error: syntax error, unexpected T_VARIABLE in
/home/.aspen/mesamb1/sultanofmirth.com/every/quotes.php on line 142
line 142 is
$face = array_rand($names) ;
I hope some one know what my problem is!
here is all of my program:
<?php
$names["that kneeds to be looked at!"] = "1";
$names["Thanks, Abhit! Support from viewers like you would help create more humor you know"] ="1";
$names["knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee knee"] ="1";
$names[me] ="1";
$names["> 10 PRINT 'knee ' > 20 GOTO 10"] ="1";
$names["kneel"] ="1";
$names["tear out my fingernails"] ="1";
$names["Yes."] ="1";
$names["http://www.bebosoft.com/pr
oducts/qipo/
i have it"] ="1";
$names["I get rss of the comments.
rolleyes"] ="1";
$names["http://reyner.be/files/hat
s.jpg"] ="1";
$names["H-E-Double Hockey Sticks works too."] ="1";
$names["One time I was in a car, the mom of a friend driving, and she was all, 'This is the parking lot from H-E-Double Hockey Sticks!!'"] ="1";
$names["I'M GEORGE ZIMMER. YOU'RE
GONNA LIKE THE WAY YOU LOOK.
I GUARANTEE IT."] ="1";
$names["Mr. Bhandari!
Satisfactory Christmas?
I sure hope it was!"] ="1";
$names["MY GERMAN-FRENCH BEEF BOURGUIGNON WAS BETTER! THERE WERE TRADITIONAL GERMAN NOODLES.
sorry"] ="1";
$names["my about me has the text
just hand that to Peyton Miller"] ="1";
$names["OK, I know I've been sending you a lot of links, but this one is SO GOOD. I want to have it engraved on my tombstone. Seriously, don't miss this one. This is one we need to show Peyton, and get him to memorize and recite on a bi-hourly basis.
Here it is.
http://religionandpolitics
.ytmnd.com/"] ="1";
$names["http://www.encyclopediadra
matica.com/ind
ex.php/Image:Zimmer-tapest
ry.jpg"] ="1";
$names["Thanks for looking at them. I'm glad you liked the paris hilton one (guess what it inspired), but my favorites are cosby cosby and CORN ONNNNNN THE COBBBBBBB"] ="1";
$names["http://cornonthekabob.ytmn
d.com/"] ="1";
$names["http://buttonz.ytmnd.com/"] ="1";
$names["http://cosbycosby.ytmnd.co
m/"] ="1";
$names["sorry i keep on sending you these but
http://lootasnickers.ytmnd
.com/"] ="1";
$names["http://conanmagnified.ytmn
d.com/"] ="1";
$names["http://parisfacial.ytmnd.c
om/"] ="1";
$names["http://www.lyrics007.com/G
ang%20Sugarhil
l%20Lyrics/Apache%20Lyrics
.html
you're right: that is REALLY racist"] ="1";
$names["HA HA HA HA HA!
I have to concede; you win.
Congratulations."] ="1";
$names["Thank you very much.
That took a little longer
Than I would have liked."] ="1";
$names["Abhit Bhandari
In Scholars' Bowl or elsewhere
Always makes me laugh?"] ="1";
$names["I would like to see
Mr. Abhit Bhandari
Play the Piano
haiku, son"] ="1";
$names["someone should file a police report.
I'll do it i guess"] ="1";
$names["http://reyner.be/files/wha
t.gif
I don't really get what that is. He pulled it out of nowhere!"] ="1";
$names["ok, the 3 stories tonight were
1. the main competetor to Barbie
2. going on the journey that Joseph and Mary went on today
and
3. people employed in the UK to help men buy lingerie for their wives
this is news."] ="1";
$names["I wouldn't— they have an old iranian talking about 'a passion for fashion.' what the hell"] ="1";
$names["they're doing a thing on challenges to barbie!?
http://reyner.be/files/emo
t-raise.gif"] ="1";
$names["that's 19, but I'm not updating the gif: nightline comes on at 11:35. To the radio!
From the global resources of ABC News, with Terry Moran in Washington, and Martin Bashir and Cynthia McFadden in Times Square, New York, this is 'Nightline.' December 22, 2006."] ="1";
$names["HA HA
http://reyner.be/files/mad
money6.mov"] ="1";
$names["http://reyner.be/files/hah
a.gif"] ="1";
$names["I like to read what people write to each other. I guess you could call me a Wall-to-Wall Charlatan.
"] ="1";
$names["not to mention the number of times over AIM..."] ="1";
$names["You've written 'haha' or some variant thereof on my wall 17 times!
I guess I'm funny."] ="1";
$names["http://reyner.be/files/bob
ble.gif"] ="1";
$names["oh yeah and roland suggested I start the 'Kids Against Murder and Gravity' club :D"] ="1";
$names["2 things:
1. http://en.wikipedia.org/wi
ki/Image:Crame
rchair.gif
2. Apparently my parents' answering machine message used to be the following:
'We can't come to the phone right now. Our dog would answer it, but alas, he doesn't have thumbs.'"] ="1";
$names["man, didn't see your status, but I was only a couple hours late!"] ="1";
$names["Harry Potter and the Deathly Hallows!"] ="1";
$names["http://reyner.be/files/sel
l.aif
but not cisco, Cramer loves cisco"] ="1";
$names["http://www.comedycentral.c
om/sitewide/me
dia_player/play.jhtml?item
Id=79579"] ="1";
$names["Do you know who John Chambers is?
He's been mentioned on the Mad Money Lightning Round at least 3 times now since 12/5/06..."] ="1";
$names["I just saw the Harry Potter and the OotP trailer today..."] ="1";
$names["I changed my ringtone to http://reyner.be/files/toy
s.mp3"] = "1"
$face = array_rand($names) ;
echo "Reyner's mememorable facebook Quote (refresh for more!): $face" ;
?>