[Opensim-users] A grid statistics page

Shaun T. Erickson ste at smxy.org
Sun Nov 2 04:11:43 UTC 2014


I'm not sure why I'm getting a "permission denied".

I put in a print statement to show me the value of $url, then tried to 
go to some of them in my browser. I get there fine and see an XML block 
with the various statistics in it. Why it doesn't like file_get_contents 
doing that, I don't know.

-ste

On 11/1/14, 11:56 PM, Shaun T. Erickson wrote:
> Not so fast ...
>
> Before I get to pagination, I see there's something else that needs 
> fixing. About 50% of the values are missing and the other 50% are all 
> zero values.
>
> It seems I'm getting a 'permission denied' when this is run:
>
> $url = "http://$srv_host:$srv_port/monitorstats/$reg_uuid/";
> $xml = file_get_contents ($url);
>
> Now to figure out why ...
>
> -ste
>
> On 11/1/14, 11:48 PM, Shaun T. Erickson wrote:
>> It turns out that there was a php-mysqlnd rpm I could install in 
>> place of the php-mysql rpm I had installed. Once I did that, the code 
>> worked.
>>
>> Now, on to pagination. :)
>>
>> -ste
>>
>> On 11/1/14, 11:38 PM, Shaun T. Erickson wrote:
>>> Jeff,
>>>
>>> I'm getting an error when I run it:
>>>
>>> PHP Fatal error:  Call to undefined method 
>>> mysqli_result::fetch_all() in /var/www/html/stats/stats.php on line 43
>>>
>>> That would be this line:
>>>
>>> $result = $answ->fetch_all(MYSQLI_ASSOC);
>>>
>>> From perusing the web, it would seem my MySQL installation lacks the 
>>> mysqlnd driver, that this function relies upon.
>>>
>>> -ste
>>>
>>>
>>> On 10/31/14, 11:43 PM, Jeff Kelley wrote:
>>>> Let's build a nice grid overview like this one :
>>>>
>>>> http://www.pescadoo.net/tmp/gridstats.png
>>> [SNIP]
>>> _______________________________________________
>>> Opensim-users mailing list
>>> Opensim-users at opensimulator.org
>>> http://opensimulator.org/cgi-bin/mailman/listinfo/opensim-users
>>
>> _______________________________________________
>> Opensim-users mailing list
>> Opensim-users at opensimulator.org
>> http://opensimulator.org/cgi-bin/mailman/listinfo/opensim-users
>
> _______________________________________________
> Opensim-users mailing list
> Opensim-users at opensimulator.org
> http://opensimulator.org/cgi-bin/mailman/listinfo/opensim-users



More information about the Opensim-users mailing list