Can a value in an array have a label that isnt its value?
Posted: Fri Jul 22, 2011 4:40 pm
Hi,
I have just followed the Minecraft Server Status tutorial and it is all working as expected, (great videos - I have never used php before and yet I have managed to just about fudge through this afternoon with lots of rewinding/replaying of the video) however Ive now got a tiny little problem I hope you/someone may be able to help with...
My webserver is on a linux server on my own network, therefore when the server status page checks my own minecraft server using its local address all is well and it shows as online like it should. But, if I change its array value to my dyndns url then the server shows as offline as expected.
Is there a way to make the value of my server in the array its local ip address whilst giving it a label that is displayed in the html table that is the URL that the rest of the world would use?
Ive tried checking the syntax page on php.net, but couldnt seem to see anything that would help here, but then again like I said, I am literally only hours into my php experience!
Cheers,
Mark
I have just followed the Minecraft Server Status tutorial and it is all working as expected, (great videos - I have never used php before and yet I have managed to just about fudge through this afternoon with lots of rewinding/replaying of the video) however Ive now got a tiny little problem I hope you/someone may be able to help with...
My webserver is on a linux server on my own network, therefore when the server status page checks my own minecraft server using its local address all is well and it shows as online like it should. But, if I change its array value to my dyndns url then the server shows as offline as expected.
Is there a way to make the value of my server in the array its local ip address whilst giving it a label that is displayed in the html table that is the URL that the rest of the world would use?
Ive tried checking the syntax page on php.net, but couldnt seem to see anything that would help here, but then again like I said, I am literally only hours into my php experience!
Cheers,
Mark