Hello,

I am making a Google Chrome extension. It checks if a Minecraft Server is online. To do so, it has to open a socket. As JavaScript can't do this, I made a PHP script that does the trick and I host it on my webserver. However, my code returns undefined when I request the page contents.

My code/output/HTTP headers/basically everything of possible importance: http://jsfiddle.net/Sydcul/q8uUn/

Thanks in advance!

-Sydcul

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.