View Full Version : A Gamingzone Application

03-22-2009, 04:41 PM
A application is to be designed for gaming zone.

formal rules are

1) generation of pin numbers with defined time.
2) users entering the pin number,
3) selection of game to launch
4) display a pop up (a model window) that would ask the user to end, request free time, enter new pin number
5) user should not be able to launch the game without pin number, and switch back to game if the timer expired.
6) PIN number remaining time calculation n updation.
7) and related functionalities.

pls also discuss that games should be residing on server or individual system ? (keeping in mind the performance issues)

system is to be implemented on 8 to 10 computers.

1rst is it possible to do this via php
or should use any software application development tool.

03-22-2009, 04:56 PM
What kind of games are you talking about? Flash games?

03-22-2009, 05:20 PM
Sounds like a gaming cafè to me.

You do realize that you will only be able to run flash games or text-based games with php?

The pin : encode a unix time stamp (number of seconds that the pin lasts)

The expiry of the pin : Register a session variable with the current timestampe and another with the current timestamp + the pin's expirey

Make a frame that refreshes or something, when it refreshes it must check if it has expired or not.

If it has expired make a redirect with the target of the frame with the game.

Only allow the content of the frame with the game if the session time has no expired.

Bit of a brute way to do it but it'll probably work.

What exactly are you trying to do?

03-22-2009, 07:53 PM
Yes you can do this via php or cfml. Also though i think this could be quite a long project. How good are you with flash and php? and what games are you talking about flash? And are you going fo like a newgrounds setup except with pin numbers?

03-22-2009, 08:36 PM
If its desktop applications you are trying to control the I wouldn't attempt any of that with PHP. If its flash games stored locally on your server then maybe thats possible. Is it a windows network and are the clients XP? If it is desktop applications and say you were doing it with php you would need to resrict alot of services that run on XP starting with explorer.exe you'd have to completely disable explorer and disable ctrl-alt delete so that clever ppl cant run explorer.exe. The webpage would have to load automatically and the browser wouldn't be able to have any standard controls like an address bar, menus etc. would have to be take up the full screen, not be resizable. The user wouldnt be able to switch programs be any means. The browser would need to act as a complete shell sitting over your OS. Then so many services would have to be disabled to prevent users switching applications, basically completely restricting use of the desktop. Some of this is possible with Active directory if you have a Windows server. Then you have got the problem of getting the client to execute programs on the client machine. Not sure if thats possible. The Internet would be a dangerous place if you could. Although maybe you can do that with active-x. I mean i can run my Steam applications from browser links. But steam is an advanced bit of software. There would be a lot of other things you would have to think about and it sounds like a very sophisticated system you are trying to develop.

03-24-2009, 09:38 AM
its a game cafe, DOES NOT includes flash or web based games.

the games will be like NFS, Fighting, Racing etc... that will be installed on each machine on a specified directory.

timgolding is right, i've to close alot of services & have to apply restrictions.

but do u think it will be achievable via PHP ?

and how to apply restrictions ? systems wil be running Windows XP SP 2

03-24-2009, 09:49 AM
What kind of games are you talking about? Flash games?

no, they are full cd games, that wil be installed on each client machine

03-24-2009, 11:30 AM
If it was me i would use windows server and set up a domain for the clients to connect to then make most restrictions on the active directory. There's plenty of info on the net about how to completely disable explorer. But you only want it to do it for non administrative accounts. Maybe via a startup script or something. with regards to using php I'm not convinced is the best approach. Because you have the problem of getting the browser to behave the way you want it to. Would be better to use something else for the application, C++, JAVA, VB or the likes. But you'd have to get into network programming which would be tricky.

03-24-2009, 02:31 PM
do u think it will be achievable via PHP


PHP controls what you see on the screen in your web browser. Yes it has all sorts of wonderful file and folder permissions that allow you to do magical things, but when it comes to controlling windows and starting and stopping applications you are trying to use the wrong language.

As Tim says, you will need something like C++, perhaps even Delphi.

You could make one awesome flash+php based Games Cafè (not a bad idea for smaller kids actually).