It's true you shouldn't share your server side code if it shows vulnerabilities. But you code shouldn't be vulnerable to begin with, though sometimes thats hard to avoid, and keeping it hidden makes it safer. So, if we have to, we can have you email me the code. But let's first see if we can fix it without going through that.
Let's try the simplest easiest thing to miss first. At the end of a line of PHP there should be a terminus, a semi-colon unless you're at the end of a closure of curly brackets indicating a loop or conditional, in the middle of a string literal that includes the line break, or using a comma to indicate a continuation of some list of definitions within a larger definition. Without that you get an error. What you have there looks like a definition, so might need a semi-colon. These semi-colons must come before comments. So:
PHP Code:
"Who is the current U.S. President?" => array ("Trump","Donald Trump","Donald J. Trump","Donald John Trump") // etc. ...
would maybe be:
PHP Code:
"Who is the current U.S. President?" => array ("Trump","Donald Trump","Donald J. Trump","Donald John Trump"); // etc. ...
Maybe, but I don't think so, using => most likely means you're defining the array of names ("Who is the current U.S. President?) as a part of a larger array, so it probably needs to be a comma:
PHP Code:
"Who is the current U.S. President?" => array ("Trump","Donald Trump","Donald J. Trump","Donald John Trump"), // etc. ...
separating it from the next definition in the overall array. But it needs something. It can't just end with the ) there. I'd go for the comma first and see if that fixes it.
Bookmarks