ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
There is less than 12 hours left to vote in the 2015 LinuxQuestions.org Members Choice Awards. Click here to go to the polls. Vote now and make sure your voice is heard!
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I need some advice for I am writing a simple website card game between two or more players. Each round, the players play their action cards and attack the opposing character cards. Each player needs to be able to execute actions and also receive feedback results from each round played.
There will be a program that actually runs the game, and a player webpage interface (that runs in a web-browser obviously). Here are some issues I need help/advice on:
Synchronizing Activity: Players need to know when they can input their actions, and also need to know the results of the round. A player may have to wait for their opponent to act, so the web interface must be capable of receiving new data. I figure web interfaces would probably need to maintain listening connection to the actual game program running on the webserver. Or it would need to periodically ask the server for updates.
Language: You can use any really. Will you be using CGI or POST requests?
Synchronizing: let players click as they please; you just have to queue the action and ignore further clicks. You cannot send data without being queried for data - but you can serve up a webpage which periodically checks for an update.
Yes, perl can do exactly what you want, I prefer php because of it's c++ style syntax, but either will do and more servers will have perl.
AJAX is basically JS but with sockets... You use it to call your perl/php scripts, it's not like a standard client/server model, but moreover you just fetch webpages, the content is the result... All very easy.