Question:
Parse error: syntax error, unexpected T_STRING in /home/a4662870/public_html/GoldMiner/index.php on line 38?
Carl M
2009-08-04 07:39:05 UTC
What is wrong?
It says this:
Parse error: syntax error, unexpected T_STRING in /home/a4662870/public_html/GoldMiner/index.php on line 38

This is my code:
}
function publishStory($bebo) {
$Gold Miner;
global $http://apps.bebo.com/GoldMinerApp;
Three answers:
Sandra
2016-04-02 09:07:29 UTC
I am really looking forward to this Ashes series and certainly haven't completely written the Aussies off. Having said that England must go into the series as overwhelming favourites due to recent form and the fact that the series is being played in England. I reckon Chris Rogers could be a bit of a dark horse as he knows the conditions over here pretty well. Good to see some friendly banter flying around between the 2 sets of supporters too!
2009-08-04 07:51:17 UTC
$Gold is a variable - you can't just hang it out there naked, you have to be doing something with it. Miner is nothing, just 5 characters that will make the PHP interpreter barf. If this is someone else's code, you can't use it until it's fixed. If it's yours, what are you trying to do in that line?



(And a URL isn't a valid variable, so your 'global' line is bad too.)
2009-08-04 07:43:37 UTC
Well it says it's on line 38. You've posted 3 lines of code.



Please post your full code.



Also put what language this is in the title in future. I can tell it's PHP but maybe some other people can't.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...