Must be a string? Huh, what? HELP?


Posted on 16th Feb 2014 07:03 pm by admin

with the following script, I get
Fatal error: Property name must be a string in /home/content/e/s/o/esone/html/test/123.php on line 24

Anyone maybe know what is causing it?

Code: <?php
function seconds2HMS($inputval){
$hh = intval($inputval / 3600);
$ss_remaining = ($inputval - ($hh * 3600));
$mm = intval($ss_remaining / 60);
$ss = ($ss_remaining - ($mm * 60));
if($hh<10){
$hh='0'.$hh;
}
if($mm<10){
$mm='0'.$mm;
}
if($ss<10){
$ss='0'.$ss;
}
return $hh.':'.$mm.':'.$ss;
}
function checkTank($tankId){
$aquVs=118;//the current game version number
$hay=json_decode(file_get_contents("http://www.gaiaonline.com/chat/gsi/index.php?v=json&m=[[6500%2C[1]]%2C[6510%2C["".$tankId.""%2C0%2C1]]%2C[6511%2C["".$tankId.""%2C0]]%2C[6512%2C["".$tankId.""%2C0]]%2C[107%2C["null"]]]&X=".time()));
$gaiaT=$hay[0][2]->{'gaia_curr_time'};
$aquaN=$hay[1][2]->{$tankId}->{'name'};
$userN=$hay[1][2]->{$tankId}->{'user_id'};
$glowT=$hay[1][2]->{$tankId}->{'game_info'}->{1}->{"open_time"};
$play=$hay[1][2]->{$tankId}->{'game_info'}->{1}->{"player_count"};
if($glowT){
if($glowT<=$gaiaT){
if($glowT+720>$gaiaT){
if($play<34){
return 'Glowing for '.seconds2HMS($gaiaT-$glowT).' <a target="_blank" href="http://www.gaiaonline.com/tank/'.$userN.'/?userEnvironmentId='.$tankId.'&gsiUrl=www&isInEdit=false&firstTime=&location=popUp&quality=low&version='.$aquVs.'&graphicsServer=http://s.cdn.gaiaonline.com/images/Gaia_Flash/aquarium/&isGameActive=true">[Open Aquarium Link]</a>';
}
else{
return 'Full';
}
}
else{
return 'Glowed '.seconds2HMS($gaiaT-$glowT).' ago.';
}
}
else{
return 'Glowing in '.seconds2HMS($glowT-$gaiaT).' <a target="_blank" href="http://www.gaiaonline.com/tank/'.$userN.'/?userEnvironmentId='.$tankId.'&gsiUrl=www&isInEdit=false&firstTime=&location=popUp&quality=low&version='.$aquVs.'&graphicsServer=http://s.cdn.gaiaonline.com/images/Gaia_Flash/aquarium/&isGameActive=true">[Open Aquarium Link]</a>';
}
}
else{
return 'Not Glowing';
}
}
?>

No comments posted yet

Your Answer:

Login to answer
109 Like 14 Dislike
Previous forums Next forums
Other forums

Ten Operator Syntax
Hi Guys,

I can't figure out why i am getting a parse error with this basic ten op code:

MySQL Does not UPDATE- SQLString Problem
vb Syntax (Toggle Plain Text) 1. SQL = "UPDATE sampletable SET column1 = 'C1sample1'"

Login page problems
I developed a website a few months ago and I am now having an issue with logging into it. The place

Two warning messages
Quote<b>Warning</b>: mysql_real_escape_string() expects parameter 1 to

writing a screen scraper
Hello,

I'm writing a screen scraper application and want to be able to get absolute addresses

Async WSAConnect failed on XP with error code = 2 ("File not found")
Hi all,

I have very strange bug, please help me if you can.

It is reproduced o

why this query can delete duplicates ?
why this query can delete duplicates ? Anybody can give me the detailed explanation ?

Tha

Parse Error Help
Hello, I got the parse error "Parse error: syntax error, unexpected ',' in register.php on line

Getting Resource id #11 while trying to connect..
So i tried using "DEFINE" for the first time and im using the variables i defined to conne

WORDPRESS - Multiple Loops Only Going to One Post?
I have various pages with multiple loops and i need them to be individual to all other categories.

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash