ID:187812
 
Say I wanted to make it so people could tell if a game I made was up from my site how would I go about doing this?

Could it be done with php?
Belongs in the Q & A section but i THINK this is what you need:

http://developer.byond.com/forum/ index.cgi?action=message_read&id=134465&forum=7&view=0

Out of interest, is there a free website i can get which allows PHP?
In response to DeathAwaitsU
The only one I can think off the top of my head is Tripod UK. The ads kind of suck, and it's a bit slow, but it's ok:
http://www.tripod.lycos.co.uk/

In response to DeathAwaitsU
DeathAwaitsU wrote:
Out of interest, is there a free website i can get which allows PHP?

www.mvhosted.com

Sure, you have to go through a crapload of Ads signing up, and ther is a banner on your pages, but it's free. and has PHP and MySQL.
In response to DeathAwaitsU
www.hostultra.com

free php
database 5$

you could also try and find someone to host a database on their server for you i guess
In response to Smoko
http://bwicki.byond.com/ByondBwicki.dmb?FreeFileHosts

Metawire supports php i believe and its free without ads.

--Goz
In response to Airjoe
Ah thanks.

One problem, i don't know how to use Lummox's thing.

Where do i put the first bit of code he showed? In a dms file? When i did that it gave an error saying world.php.dms:27:error at 'end of file': badly terminated html block

I put the second bit in a php file, made on the file manager, when i access it, it says :


Warning: file(): URL file-access is disabled in the server configuration in - on line 86

Warning: file(http://www.byond.com/hub/ hub.cgi?qd=hub;hub=DeathAwaitsU.TestGame;format=text;content =|worlds|users|): failed to open stream: no suitable wrapper could be found in - on line 86

Warning: Variable passed to each() is not an array or object in - on line 89

It may be that i'm not hosting due to the error in the dms.
In response to DeathAwaitsU
Both of those things he posted are PHP code. The first one goes in a file called world.php, and the second one goes into any PHP page where you want to display the world's status.

The DMS reference just means that the PHP file *generates* the DMS script. It isn't a DMS script itself.
In response to Crispy
Ok i created a world.php file in my file manager and added the first bit of code into it.

Then i creates a test.php file and put the other piece of code in it.

After hosting i got this when trying to access test.php;

Warning: file(): URL file-access is disabled in the server configuration in - on line 86

Warning: file(http://www.byond.com/hub/hub.cgi?qd=hub;hub=DeathAwaitsU.TestGame;format=text;content=|worlds|users|): failed to open stream: no suitable wrapper could be found in - on line 86

Warning: Variable passed to each() is not an array or object in - on line 89


Could it have something to do with the hub passwordnot eing in th php file.
I'll host that file for you, i can even set it up for you.

Intrested?
In response to DeathAwaitsU
DeathAwaitsU wrote:
Could it have something to do with the hub passwordnot eing in th php file.

Nope.

It's because your host has restricted access to putting URLs in the file() command. There's probably no way around this except to contact them and ask them to lift that restriction, or get a different host.
In response to Crispy
Alright, i guess mvhosted sucks then.

And sorry about the poor typing before, my keyboard wasn't really working.
In response to DeathAwaitsU
DeathAwaitsU wrote:
Alright, i guess mvhosted sucks then.

You get what you pay for. =)

I suspect that a lot of free PHP hosts would do that, actually ... being able to download webpages like that can be used to get around content filters and such. It's annoying, but there you go.