Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #14514 > unrolled thread

newbie

Started byHaris Bogdanovich <haris.bogdanovic@gmail.com>
First post2014-11-09 17:10 +0100
Last post2014-11-19 15:02 +0100
Articles 20 on this page of 22 — 8 participants

Back to article view | Back to comp.lang.php


Contents

  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 1 of 2  [1] 2  Next page →


#14514 — newbie

FromHaris Bogdanovich <haris.bogdanovic@gmail.com>
Date2014-11-09 17:10 +0100
Subjectnewbie
Message-ID<m3o3m5$pis$1@gregory.bnet.hr>
Hi.

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 ?

Thanks.

[toc] | [next] | [standalone]


#14515

FromJerry Stuckle <jstucklex@attglobal.net>
Date2014-11-09 11:46 -0500
Message-ID<m3o5po$lav$1@dont-email.me>
In reply to#14514
On 11/9/2014 11:10 AM, Haris Bogdanovich wrote:
> Hi.
> 
> 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 ?
> 
> Thanks.

No matter how you do it, you'll need something server-side to
communicate between the players.

But HTML is not well-suited for such an operation.  HTML is a
request/response protocol; when player "A" makes a move, player "B" will
have to do something to see the change - there is no way HTML can push
the change to player "B".  The only way "B" can get the change is to
request information from the server.  This can be done several ways,
such as a "refresh" button, a meta refresh in the HTML or an Ajax
request.  But any way you do it will require polling the server.

Another problem you'll have to handle is how to communicate between the
two players.  In general, each user on a website is independent of all
other users.  Again, there are several ways to do this, such as storing
the moves in a database with a game number, and associating that game
number with each player.  But again, it's something you'll have to consider.

-- 
==================
Remove the "x" from my email address
Jerry Stuckle
jstucklex@attglobal.net
==================

[toc] | [prev] | [next] | [standalone]


#14605

FromArno Welzel <usenet@arnowelzel.de>
Date2014-11-18 17:44 +0100
Message-ID<546B775E.50309@arnowelzel.de>
In reply to#14515
Am 2014-11-09 um 17:46 schrieb Jerry Stuckle:

> On 11/9/2014 11:10 AM, Haris Bogdanovich wrote:
>> Hi.
>>
>> 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 ?
>>
>> Thanks.
> 
> No matter how you do it, you'll need something server-side to
> communicate between the players.
> 
> But HTML is not well-suited for such an operation.  HTML is a
> request/response protocol; when player "A" makes a move, player "B" will
> have to do something to see the change - there is no way HTML can push
> the change to player "B".  The only way "B" can get the change is to

"HTML" is no protocol at all. I assume you talk about "HTTP".

> request information from the server.  This can be done several ways,
> such as a "refresh" button, a meta refresh in the HTML or an Ajax
> request.  But any way you do it will require polling the server.

If you can set up your own services on the server side you can also use
web sockets as most current browsers support them (see
<http://caniuse.com/#search=web%20sockets>).

A very simple "quick & dirty" example:

<https://arnowelzel.de/tools/chat>

The backend is a web socket server based on Ratchet and stunnel to
handle the TLS stuff. But newer web servers like nginx can also be used
as a web socket proxy - or Apache 2.4 using the mod_proxy_wstunnel module.

Ajax with polling every x seconds may be a good fallback in case the
browser does not support web sockets.

> Another problem you'll have to handle is how to communicate between the
> two players.  In general, each user on a website is independent of all
> other users.  Again, there are several ways to do this, such as storing
> the moves in a database with a game number, and associating that game
> number with each player.  But again, it's something you'll have to consider.

Yes - at least there needs to be a list of "active games" with the
connected players on the server.


-- 
Arno Welzel
http://arnowelzel.de
http://de-rec-fahrrad.de
http://fahrradzukunft.de

[toc] | [prev] | [next] | [standalone]


#14612

FromJerry Stuckle <jstucklex@attglobal.net>
Date2014-11-18 16:07 -0500
Message-ID<m4gceq$qv3$2@dont-email.me>
In reply to#14605
On 11/18/2014 11:44 AM, Arno Welzel wrote:
> Am 2014-11-09 um 17:46 schrieb Jerry Stuckle:
> 
>> On 11/9/2014 11:10 AM, Haris Bogdanovich wrote:
>>> Hi.
>>>
>>> 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 ?
>>>
>>> Thanks.
>>
>> No matter how you do it, you'll need something server-side to
>> communicate between the players.
>>
>> But HTML is not well-suited for such an operation.  HTML is a
>> request/response protocol; when player "A" makes a move, player "B" will
>> have to do something to see the change - there is no way HTML can push
>> the change to player "B".  The only way "B" can get the change is to
> 
> "HTML" is no protocol at all. I assume you talk about "HTTP".
>

You're correct.  I was in a hurry to write.  I should know better :)

-- 
==================
Remove the "x" from my email address
Jerry Stuckle
jstucklex@attglobal.net
==================

[toc] | [prev] | [next] | [standalone]


#14516

FromThomas 'PointedEars' Lahn <PointedEars@web.de>
Date2014-11-09 18:31 +0100
Message-ID<1656608.WUIt1KZqNl@PointedEars.de>
In reply to#14514
Haris Bogdanovich wrote:

> 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
> ?

Mu.

<http://www.catb.org/~esr/faqs/smart-questions.html>

-- 
PointedEars
Zend Certified PHP Engineer
Twitter: @PointedEars2
Please do not Cc: me. / Bitte keine Kopien per E-Mail.

[toc] | [prev] | [next] | [standalone]


#14517

FromLuuk <luuk@invalid.lan>
Date2014-11-09 18:41 +0100
Message-ID<545fa756$0$2943$e4fe514c@news.xs4all.nl>
In reply to#14516
On 9-11-2014 18:31, Thomas 'PointedEars' Lahn wrote:
> Haris Bogdanovich wrote:
>
>> 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
>> ?
>
> Mu.
>
> <http://www.catb.org/~esr/faqs/smart-questions.html>
>

http://www.novelgames.com/en/mpgames/tictactoe/

[toc] | [prev] | [next] | [standalone]


#14518

FromJerry Stuckle <jstucklex@attglobal.net>
Date2014-11-09 16:38 -0500
Message-ID<m3omru$qmf$1@dont-email.me>
In reply to#14517
On 11/9/2014 12:41 PM, Luuk wrote:
> On 9-11-2014 18:31, Thomas 'PointedEars' Lahn wrote:
>> Haris Bogdanovich wrote:
>>
>>> 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
>>> ?
>>
>> Mu.
>>
>> <http://www.catb.org/~esr/faqs/smart-questions.html>
>>
> 
> http://www.novelgames.com/en/mpgames/tictactoe/

Luuk,

Tic-tac-toe is too advanced for Pointed Head.

-- 
==================
Remove the "x" from my email address
Jerry Stuckle
jstucklex@attglobal.net
==================

[toc] | [prev] | [next] | [standalone]


#14606

FromArno Welzel <usenet@arnowelzel.de>
Date2014-11-18 17:48 +0100
Message-ID<546B784A.6040903@arnowelzel.de>
In reply to#14514
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.

The server could keep track of the current status of the board and using
AJAX you could refresh the board every x seconds.

If web sockets are possible, this would enable "live" playing by sending
moves directly from one client to another - but this also involves some
server side code to handle to communication between the clients. As an
example what web sockets can do:

<https://arnowelzel.de/tools/chat/>

You can open two browser windows (or two different browsers) and play
around with it - as soon as one connected visitor enters a message, all
other visitors will get this message immediatly without polling the
server all the time.

Also see: <http://socketo.me/>


-- 
Arno Welzel
http://arnowelzel.de
http://de-rec-fahrrad.de
http://fahrradzukunft.de

[toc] | [prev] | [next] | [standalone]


#14607

From"Christoph M. Becker" <cmbecker69@arcor.de>
Date2014-11-18 19:00 +0100
Message-ID<m4g1g4$l3a$1@solani.org>
In reply to#14606
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.

-- 
Christoph M. Becker

[toc] | [prev] | [next] | [standalone]


#14611

FromJerry Stuckle <jstucklex@attglobal.net>
Date2014-11-18 16:06 -0500
Message-ID<m4gcd3$qv3$1@dont-email.me>
In reply to#14607
On 11/18/2014 1:00 PM, Christoph M. Becker wrote:
> 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.
> 

How are you going to handle the communications between players without
something server side?

-- 
==================
Remove the "x" from my email address
Jerry Stuckle
jstucklex@attglobal.net
==================

[toc] | [prev] | [next] | [standalone]


#14613

FromDenis McMahon <denismfmcmahon@gmail.com>
Date2014-11-18 22:54 +0000
Message-ID<m4ginp$tle$1@dont-email.me>
In reply to#14611
On Tue, 18 Nov 2014 16:06:57 -0500, Jerry Stuckle wrote:

> On 11/18/2014 1:00 PM, Christoph M. Becker wrote:

>> However, that doesn't necessarily mean that anything has to be ported
>> to PHP.

> How are you going to handle the communications between players without
> something server side?

Jerry, PHP isn't the only server side language. ;)

It should be possible to write the server side in just about any language 
that the platform supports using cgi. Of course, some languages are 
easier and faster to develop in than others, and some integrate better 
with web servers than others.

-- 
Denis McMahon, denismfmcmahon@gmail.com

[toc] | [prev] | [next] | [standalone]


#14614

FromJerry Stuckle <jstucklex@attglobal.net>
Date2014-11-18 19:18 -0500
Message-ID<m4gnl3$3qd$1@dont-email.me>
In reply to#14613
On 11/18/2014 5:54 PM, Denis McMahon wrote:
> On Tue, 18 Nov 2014 16:06:57 -0500, Jerry Stuckle wrote:
> 
>> On 11/18/2014 1:00 PM, Christoph M. Becker wrote:
> 
>>> However, that doesn't necessarily mean that anything has to be ported
>>> to PHP.
> 
>> How are you going to handle the communications between players without
>> something server side?
> 
> Jerry, PHP isn't the only server side language. ;)
> 
> It should be possible to write the server side in just about any language 
> that the platform supports using cgi. Of course, some languages are 
> easier and faster to develop in than others, and some integrate better 
> with web servers than others.
> 

I know, Denis - but the OP was asking about PHP - in a PHP newsgroup.
It can't be done in javascript - so it has to be ported to SOME
server-side language.

-- 
==================
Remove the "x" from my email address
Jerry Stuckle
jstucklex@attglobal.net
==================

[toc] | [prev] | [next] | [standalone]


#14616

FromArno Welzel <usenet@arnowelzel.de>
Date2014-11-19 10:12 +0100
Message-ID<546C5EEC.4010601@arnowelzel.de>
In reply to#14614
Am 2014-11-19 um 01:18 schrieb Jerry Stuckle:

> On 11/18/2014 5:54 PM, Denis McMahon wrote:
>> On Tue, 18 Nov 2014 16:06:57 -0500, Jerry Stuckle wrote:
>>
>>> On 11/18/2014 1:00 PM, Christoph M. Becker wrote:
>>
>>>> However, that doesn't necessarily mean that anything has to be ported
>>>> to PHP.
>>
>>> How are you going to handle the communications between players without
>>> something server side?
>>
>> Jerry, PHP isn't the only server side language. ;)
>>
>> It should be possible to write the server side in just about any language 
>> that the platform supports using cgi. Of course, some languages are 
>> easier and faster to develop in than others, and some integrate better 
>> with web servers than others.
>>
> 
> I know, Denis - but the OP was asking about PHP - in a PHP newsgroup.
> It can't be done in javascript - so it has to be ported to SOME
> server-side language.

JFTR: Using Node.js it is of course possible to use JavaScript on the
server - but this is not the topic of this newsgroup.


-- 
Arno Welzel
http://arnowelzel.de
http://de-rec-fahrrad.de
http://fahrradzukunft.de

[toc] | [prev] | [next] | [standalone]


#14617

FromJerry Stuckle <jstucklex@attglobal.net>
Date2014-11-19 06:37 -0500
Message-ID<m4hvcv$tk1$1@dont-email.me>
In reply to#14616
On 11/19/2014 4:12 AM, Arno Welzel wrote:
> Am 2014-11-19 um 01:18 schrieb Jerry Stuckle:
> 
>> On 11/18/2014 5:54 PM, Denis McMahon wrote:
>>> On Tue, 18 Nov 2014 16:06:57 -0500, Jerry Stuckle wrote:
>>>
>>>> On 11/18/2014 1:00 PM, Christoph M. Becker wrote:
>>>
>>>>> However, that doesn't necessarily mean that anything has to be ported
>>>>> to PHP.
>>>
>>>> How are you going to handle the communications between players without
>>>> something server side?
>>>
>>> Jerry, PHP isn't the only server side language. ;)
>>>
>>> It should be possible to write the server side in just about any language 
>>> that the platform supports using cgi. Of course, some languages are 
>>> easier and faster to develop in than others, and some integrate better 
>>> with web servers than others.
>>>
>>
>> I know, Denis - but the OP was asking about PHP - in a PHP newsgroup.
>> It can't be done in javascript - so it has to be ported to SOME
>> server-side language.
> 
> JFTR: Using Node.js it is of course possible to use JavaScript on the
> server - but this is not the topic of this newsgroup.
> 
> 

And how many hosting companies support Node.js?  I'm sure there are one
or two - but I haven't seen any.

As opposed to other languages such as PHP, Python, Ruby and even .NET -
there are huge numbers supporting one or more of these.

-- 
==================
Remove the "x" from my email address
Jerry Stuckle
jstucklex@attglobal.net
==================

[toc] | [prev] | [next] | [standalone]


#14618

FromThomas 'PointedEars' Lahn <PointedEars@web.de>
Date2014-11-19 12:59 +0100
Message-ID<2407397.hzT1L95IZ1@PointedEars.de>
In reply to#14617
Jerry Stuckle wrote:

> And how many hosting companies support Node.js?  I'm sure there are one
> or two - but I haven't seen any.

You know, you don't have to post if you don't have a clue.
 
<http://www.google.com/search?q=node.js+hosting>
| About 9,900 results (0.21 seconds)

-- 
PointedEars
Zend Certified PHP Engineer
Twitter: @PointedEars2
Please do not cc me. / Bitte keine Kopien per E-Mail.

[toc] | [prev] | [next] | [standalone]


#14620

FromJerry Stuckle <jstucklex@attglobal.net>
Date2014-11-19 10:45 -0500
Message-ID<m4idus$lkm$1@dont-email.me>
In reply to#14618
On 11/19/2014 6:59 AM, Thomas 'PointedEars' Lahn wrote:
> Jerry Stuckle wrote:
> 
>> And how many hosting companies support Node.js?  I'm sure there are one
>> or two - but I haven't seen any.
> 
> You know, you don't have to post if you don't have a clue.
>  
> <http://www.google.com/search?q=node.js+hosting>
> | About 9,900 results (0.21 seconds)
> 

And do all of those host node.js?  Or do they just both contain the
words "hosting" and "node.js" on the same page?

You're clueless - as usual.

-- 
==================
Remove the "x" from my email address
Jerry Stuckle
jstucklex@attglobal.net
==================

[toc] | [prev] | [next] | [standalone]


#14621

FromArno Welzel <usenet@arnowelzel.de>
Date2014-11-19 17:18 +0100
Message-ID<546CC2BF.4070105@arnowelzel.de>
In reply to#14617
Am 2014-11-19 um 12:37 schrieb Jerry Stuckle:

> On 11/19/2014 4:12 AM, Arno Welzel wrote:
>> Am 2014-11-19 um 01:18 schrieb Jerry Stuckle:
>>
>>> On 11/18/2014 5:54 PM, Denis McMahon wrote:
>>>> On Tue, 18 Nov 2014 16:06:57 -0500, Jerry Stuckle wrote:
>>>>
>>>>> On 11/18/2014 1:00 PM, Christoph M. Becker wrote:
>>>>
>>>>>> However, that doesn't necessarily mean that anything has to be ported
>>>>>> to PHP.
>>>>
>>>>> How are you going to handle the communications between players without
>>>>> something server side?
>>>>
>>>> Jerry, PHP isn't the only server side language. ;)
>>>>
>>>> It should be possible to write the server side in just about any language 
>>>> that the platform supports using cgi. Of course, some languages are 
>>>> easier and faster to develop in than others, and some integrate better 
>>>> with web servers than others.
>>>>
>>>
>>> I know, Denis - but the OP was asking about PHP - in a PHP newsgroup.
>>> It can't be done in javascript - so it has to be ported to SOME
>>> server-side language.
>>
>> JFTR: Using Node.js it is of course possible to use JavaScript on the
>> server - but this is not the topic of this newsgroup.
>>
>>
> 
> And how many hosting companies support Node.js?  I'm sure there are one
> or two - but I haven't seen any.

See here:

<https://github.com/joyent/node/wiki/node-hosting>

> As opposed to other languages such as PHP, Python, Ruby and even .NET -
> there are huge numbers supporting one or more of these.

There is still the option to set up your own Node.js hosting. Virtual
Linux boxes are not that expensive these days.

For example:

<http://www.ovh.com/us/vps/vps-classic.xml>


-- 
Arno Welzel
http://arnowelzel.de
http://de-rec-fahrrad.de
http://fahrradzukunft.de

[toc] | [prev] | [next] | [standalone]


#14622

FromJerry Stuckle <jstucklex@attglobal.net>
Date2014-11-19 13:23 -0500
Message-ID<m4in6v$suu$1@dont-email.me>
In reply to#14621
On 11/19/2014 11:18 AM, Arno Welzel wrote:
> Am 2014-11-19 um 12:37 schrieb Jerry Stuckle:
> 
>> On 11/19/2014 4:12 AM, Arno Welzel wrote:
>>> Am 2014-11-19 um 01:18 schrieb Jerry Stuckle:
>>>
>>>> On 11/18/2014 5:54 PM, Denis McMahon wrote:
>>>>> On Tue, 18 Nov 2014 16:06:57 -0500, Jerry Stuckle wrote:
>>>>>
>>>>>> On 11/18/2014 1:00 PM, Christoph M. Becker wrote:
>>>>>
>>>>>>> However, that doesn't necessarily mean that anything has to be ported
>>>>>>> to PHP.
>>>>>
>>>>>> How are you going to handle the communications between players without
>>>>>> something server side?
>>>>>
>>>>> Jerry, PHP isn't the only server side language. ;)
>>>>>
>>>>> It should be possible to write the server side in just about any language 
>>>>> that the platform supports using cgi. Of course, some languages are 
>>>>> easier and faster to develop in than others, and some integrate better 
>>>>> with web servers than others.
>>>>>
>>>>
>>>> I know, Denis - but the OP was asking about PHP - in a PHP newsgroup.
>>>> It can't be done in javascript - so it has to be ported to SOME
>>>> server-side language.
>>>
>>> JFTR: Using Node.js it is of course possible to use JavaScript on the
>>> server - but this is not the topic of this newsgroup.
>>>
>>>
>>
>> And how many hosting companies support Node.js?  I'm sure there are one
>> or two - but I haven't seen any.
> 
> See here:
> 
> <https://github.com/joyent/node/wiki/node-hosting>
> 
>> As opposed to other languages such as PHP, Python, Ruby and even .NET -
>> there are huge numbers supporting one or more of these.
> 
> There is still the option to set up your own Node.js hosting. Virtual
> Linux boxes are not that expensive these days.
> 
> For example:
> 
> <http://www.ovh.com/us/vps/vps-classic.xml>
> 
> 

True, but they require the time and knowledge to set up a secure system
(one which won't be hacked), and a fair amount of time for maintenance.

Running your own server on the internet is not a good idea without a lot
of admin experience.

-- 
==================
Remove the "x" from my email address
Jerry Stuckle
jstucklex@attglobal.net
==================

[toc] | [prev] | [next] | [standalone]


#14623

FromArno Welzel <usenet@arnowelzel.de>
Date2014-11-20 08:19 +0100
Message-ID<546D95F2.1080207@arnowelzel.de>
In reply to#14622
Jerry Stuckle schrieb am 2014-11-19 um 19:23:

> On 11/19/2014 11:18 AM, Arno Welzel wrote:
>> Am 2014-11-19 um 12:37 schrieb Jerry Stuckle:
[...]
>>> And how many hosting companies support Node.js?  I'm sure there are one
>>> or two - but I haven't seen any.
>>
>> See here:
>>
>> <https://github.com/joyent/node/wiki/node-hosting>
>>
>>> As opposed to other languages such as PHP, Python, Ruby and even .NET -
>>> there are huge numbers supporting one or more of these.
>>
>> There is still the option to set up your own Node.js hosting. Virtual
>> Linux boxes are not that expensive these days.
>>
>> For example:
>>
>> <http://www.ovh.com/us/vps/vps-classic.xml>
>>
>>
> 
> True, but they require the time and knowledge to set up a secure system
> (one which won't be hacked), and a fair amount of time for maintenance.
> 
> Running your own server on the internet is not a good idea without a lot
> of admin experience.

I would never recommend someone without experience to run his/her own
server - although there are also "managed" servers where the hoster
takes care for security updates etc..

On the other hand: Building a public website based on PHP or running any
kind of PHP based application without a lot of experience is not a good
idea either. Just remember the recent security problems in Drupal.

Anyway: the first list on Github I mentioned lists at least 18 services
where you can host your own Node.js stuff without setting up and
maintaining your own server. This I would definitely call more than "one
or two".


-- 
Arno Welzel
http://arnowelzel.de
http://de-rec-fahrrad.de
http://fahrradzukunft.de

[toc] | [prev] | [next] | [standalone]


#14624

FromJerry Stuckle <jstucklex@attglobal.net>
Date2014-11-20 09:01 -0500
Message-ID<m4ks6q$mke$1@dont-email.me>
In reply to#14623
On 11/20/2014 2:19 AM, Arno Welzel wrote:
> Jerry Stuckle schrieb am 2014-11-19 um 19:23:
> 
>> On 11/19/2014 11:18 AM, Arno Welzel wrote:
>>> Am 2014-11-19 um 12:37 schrieb Jerry Stuckle:
> [...]
>>>> And how many hosting companies support Node.js?  I'm sure there are one
>>>> or two - but I haven't seen any.
>>>
>>> See here:
>>>
>>> <https://github.com/joyent/node/wiki/node-hosting>
>>>
>>>> As opposed to other languages such as PHP, Python, Ruby and even .NET -
>>>> there are huge numbers supporting one or more of these.
>>>
>>> There is still the option to set up your own Node.js hosting. Virtual
>>> Linux boxes are not that expensive these days.
>>>
>>> For example:
>>>
>>> <http://www.ovh.com/us/vps/vps-classic.xml>
>>>
>>>
>>
>> True, but they require the time and knowledge to set up a secure system
>> (one which won't be hacked), and a fair amount of time for maintenance.
>>
>> Running your own server on the internet is not a good idea without a lot
>> of admin experience.
> 
> I would never recommend someone without experience to run his/her own
> server - although there are also "managed" servers where the hoster
> takes care for security updates etc..
> 

But you also won't get those for cheap.

> On the other hand: Building a public website based on PHP or running any
> kind of PHP based application without a lot of experience is not a good
> idea either. Just remember the recent security problems in Drupal.
>

A basic website in PHP isn't that bad, as long as you aren't collecting
personal data.  Something like Drupal is much more complex, though.  And
even PHPBB2 had some exposures several years ago.

> Anyway: the first list on Github I mentioned lists at least 18 services
> where you can host your own Node.js stuff without setting up and
> maintaining your own server. This I would definitely call more than "one
> or two".
> 
> 

Wow.  At least 18 hosting companies in the whole world.  That's a HUGE
number!  No wonder node.js is taking over the world.

-- 
==================
Remove the "x" from my email address
Jerry Stuckle
jstucklex@attglobal.net
==================

[toc] | [prev] | [next] | [standalone]


Page 1 of 2  [1] 2  Next page →

Back to top | Article view | comp.lang.php


csiph-web