php parse error - XAAMP

I'm trying to run a php program in XAAMP on my local machine, Windows 7.

XAAMP is installed & running.

Attached is a fairly simple php program that accesses a database & prints some info, depending upon the selection in the pulldown.

To see it operating on a web server, go to rkassoc.org/sebadt.

I run EXACTLY the same program on XAAMP & I get this:

Parse error: syntax error, unexpected end of file in C:\xampp\htdocs\seba\index.php on line 105

Is there some kind of error checking severity level in the XAAMP version of php that I need to make lest severe?

I've run the script through a php syntax checker, no errors.

Thanks.
index.php
Richard KortsAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Richard KortsAuthor Commented:
I found the solution myself. It seems XAAMP (the way it's configured) does not accept php short tags (<?) as the opening of a php block.

I replaced all "<?" with "<?php" & it works.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Brian TaoSenior Business Solutions ConsultantCommented:
I believe it's caused by the short php tags.  Try replacing all your <? (3 occurrences in line #64, 1 in line #65 and then #70, #78, #86, #90, #94, #95, #96, #97 and #99) to <?php and see if it works.
0
Brian TaoSenior Business Solutions ConsultantCommented:
Oops~ saw your comment right after I hit the submit button.  One minute too late ^^.  I'd still like to keep my comment here for record if you don't mind.
0
Richard KortsAuthor Commented:
Brian Tao,

No problem. I did some research on my own & found that issue. It's funny because MOST of the answers on the web did NOT recognize that issue & instead regarded it as unmatched curly braces. I use a php syntax checker so I knew it wasn't that, especially because the identical program runs on a commercially hosted web server.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
PHP

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.