Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 9 of 9
  1. #1
    New Coder
    Join Date
    Apr 2004
    Location
    Fsd / PK
    Posts
    68
    Thanks
    11
    Thanked 0 Times in 0 Posts

    Thumbs up A Gamingzone Application

    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.

  • #2
    New Coder
    Join Date
    Mar 2009
    Location
    Chicago, IL
    Posts
    69
    Thanks
    0
    Thanked 15 Times in 15 Posts
    What kind of games are you talking about? Flash games?

  • #3
    Regular Coder DR.Wong's Avatar
    Join Date
    Jan 2005
    Posts
    360
    Thanks
    23
    Thanked 1 Time in 1 Post
    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?
    -DR.Wong

    Wheres the food at?

  • #4
    Regular Coder slappyjaw's Avatar
    Join Date
    Mar 2009
    Location
    Wonderland!
    Posts
    146
    Thanks
    14
    Thanked 3 Times in 3 Posts
    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?

  • #5
    Senior Coder timgolding's Avatar
    Join Date
    Aug 2006
    Location
    Southampton
    Posts
    1,517
    Thanks
    114
    Thanked 110 Times in 109 Posts
    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.
    You can not say you know how to do something, until you can teach it to someone else.

  • #6
    New Coder
    Join Date
    Apr 2004
    Location
    Fsd / PK
    Posts
    68
    Thanks
    11
    Thanked 0 Times in 0 Posts
    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

  • #7
    New Coder
    Join Date
    Apr 2004
    Location
    Fsd / PK
    Posts
    68
    Thanks
    11
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by steelaz View Post
    What kind of games are you talking about? Flash games?
    no, they are full cd games, that wil be installed on each client machine

  • #8
    Senior Coder timgolding's Avatar
    Join Date
    Aug 2006
    Location
    Southampton
    Posts
    1,517
    Thanks
    114
    Thanked 110 Times in 109 Posts
    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.
    You can not say you know how to do something, until you can teach it to someone else.

  • #9
    Regular Coder DR.Wong's Avatar
    Join Date
    Jan 2005
    Posts
    360
    Thanks
    23
    Thanked 1 Time in 1 Post
    do u think it will be achievable via PHP
    No.

    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).
    -DR.Wong

    Wheres the food at?


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •