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

Select all entries from database that include a phrase
I have a database of clubs - one of the categories is meeting time and place
I would like to have

try catch error
I have been trying try catch but, I can't get it to work. The code opens a non existing file called

Quick variable question
hey guys/gals,
im trying to write a php script and it works fine as i have it, but i need to set

pointer 102 question
I read a book
1
2
3
4
5
6
7
8
9
10
11
12
int main() {

help with email script...
hey

I need help with my mail script

when the form on http://www.mcgdesignstudio.com/c

script and html conflict in trying to create a header.
I have an error is occurring because of an html webpage with a "php require" at the top of

Table Control
Hi Guru's,

I've created a Module pool program, which contains the Table Control.

Menu restriction
How can I restrict the individual menu that would appear when a user logs in so that all users are c

The control with ID 'ace' requires a ScriptManager on the page
I'm trying to add a simple AlwaysVisibleControlExtender to my page, but it's not working. I get the

Protecting forms
Alright, I want to protect some forms of mine from SQL Injections, because I had someone earlier spa

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