Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #14514 > unrolled thread
| Started by | Haris Bogdanovich <haris.bogdanovic@gmail.com> |
|---|---|
| First post | 2014-11-09 17:10 +0100 |
| Last post | 2014-11-19 15:02 +0100 |
| Articles | 2 on this page of 22 — 8 participants |
Back to article view | Back to comp.lang.php
newbie Haris Bogdanovich <haris.bogdanovic@gmail.com> - 2014-11-09 17:10 +0100
Re: newbie Jerry Stuckle <jstucklex@attglobal.net> - 2014-11-09 11:46 -0500
Re: newbie Arno Welzel <usenet@arnowelzel.de> - 2014-11-18 17:44 +0100
Re: newbie Jerry Stuckle <jstucklex@attglobal.net> - 2014-11-18 16:07 -0500
Re: newbie Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-11-09 18:31 +0100
Re: newbie Luuk <luuk@invalid.lan> - 2014-11-09 18:41 +0100
Re: newbie Jerry Stuckle <jstucklex@attglobal.net> - 2014-11-09 16:38 -0500
Re: newbie Arno Welzel <usenet@arnowelzel.de> - 2014-11-18 17:48 +0100
Re: newbie "Christoph M. Becker" <cmbecker69@arcor.de> - 2014-11-18 19:00 +0100
Re: newbie Jerry Stuckle <jstucklex@attglobal.net> - 2014-11-18 16:06 -0500
Re: newbie Denis McMahon <denismfmcmahon@gmail.com> - 2014-11-18 22:54 +0000
Re: newbie Jerry Stuckle <jstucklex@attglobal.net> - 2014-11-18 19:18 -0500
Re: newbie Arno Welzel <usenet@arnowelzel.de> - 2014-11-19 10:12 +0100
Re: newbie Jerry Stuckle <jstucklex@attglobal.net> - 2014-11-19 06:37 -0500
Re: newbie Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-11-19 12:59 +0100
Re: newbie Jerry Stuckle <jstucklex@attglobal.net> - 2014-11-19 10:45 -0500
Re: newbie Arno Welzel <usenet@arnowelzel.de> - 2014-11-19 17:18 +0100
Re: newbie Jerry Stuckle <jstucklex@attglobal.net> - 2014-11-19 13:23 -0500
Re: newbie Arno Welzel <usenet@arnowelzel.de> - 2014-11-20 08:19 +0100
Re: newbie Jerry Stuckle <jstucklex@attglobal.net> - 2014-11-20 09:01 -0500
Re: newbie Arno Welzel <usenet@arnowelzel.de> - 2014-11-19 10:11 +0100
Re: newbie Erwin Moller <erwinmollerusenet@xs4all.nl> - 2014-11-19 15:02 +0100
Page 2 of 2 — ← Prev page 1 [2]
| From | Arno Welzel <usenet@arnowelzel.de> |
|---|---|
| Date | 2014-11-19 10:11 +0100 |
| Message-ID | <546C5EAB.2080504@arnowelzel.de> |
| In reply to | #14607 |
Am 2014-11-18 um 19:00 schrieb Christoph M. Becker: > Arno Welzel wrote: > >> Am 2014-11-09 um 17:10 schrieb Haris Bogdanovich: >> >>> I made a tic-tac-toe in Javascript, it works OK and I want it online for >>> two players. Do I have to rewrite it in PHP or use AJAX or some other way ? >> >> Both - you need something on the server to keep track of running games >> and the connected users and you also need some code to send the player >> moves to the server and transmit them to the opponent. > > However, that doesn't necessarily mean that anything has to be ported to > PHP. At least the server has to act as a kind of broker for the clients to enable connections between them - and this is where PHP may be involved. Of course you can also use Node.js on the server side as well, if you prefer JavaScript on the server. -- Arno Welzel http://arnowelzel.de http://de-rec-fahrrad.de http://fahrradzukunft.de
[toc] | [prev] | [next] | [standalone]
| From | Erwin Moller <erwinmollerusenet@xs4all.nl> |
|---|---|
| Date | 2014-11-19 15:02 +0100 |
| Message-ID | <546ca305$0$2888$e4fe514c@news2.news.xs4all.nl> |
| In reply to | #14615 |
On 11/19/2014 10:11 AM, Arno Welzel wrote: > Am 2014-11-18 um 19:00 schrieb Christoph M. Becker: > >> Arno Welzel wrote: >> >>> Am 2014-11-09 um 17:10 schrieb Haris Bogdanovich: >>> >>>> I made a tic-tac-toe in Javascript, it works OK and I want it online for >>>> two players. Do I have to rewrite it in PHP or use AJAX or some other way ? >>> >>> Both - you need something on the server to keep track of running games >>> and the connected users and you also need some code to send the player >>> moves to the server and transmit them to the opponent. >> >> However, that doesn't necessarily mean that anything has to be ported to >> PHP. > > At least the server has to act as a kind of broker for the clients to > enable connections between them - and this is where PHP may be involved. > Of course you can also use Node.js on the server side as well, if you > prefer JavaScript on the server. > > Node.js is the way to go, I think. I have made a lot of multiplayer/chat software in different languages serverside (ASP/VBScript, Perl, Java, and PHP). And they all had their issues, except Java, but Java can be a hard language to work with. When I started developing a HTML5 multiplayergame in node.js, I was surprised: It is very good at these kind of tasks. The socket.io lib in nodejs makes your life easy. With socket.io lib you can easily create custom "events" and let the server call them at a client, and vise versa. The same call passes complete objects too, if desired. just my 2 cent. Regards, Erwin Moller -- "That which can be asserted without evidence, can be dismissed without evidence." -- Christopher Hitchens
[toc] | [prev] | [standalone]
Page 2 of 2 — ← Prev page 1 [2]
Back to top | Article view | comp.lang.php
csiph-web