Real Time Data Updates - With PHP

Dear Wappler Team.
This is a big PLEASE :slight_smile:

Real TIme Data Updates with PHP
This is a link I came across - but im no genius…
http://socketo.me/

Im still using PHP because of my dedicated server… and that the site was build before node.js was stable and socket in wappler… so i will have to redo everything… and get a new server… if i want to go the nodje.js way… but im to far down the rabbit hole with php… and point of no return…

There is still a hudge amout of “us” Wapplairians using the php - just because shared hosting is cheap… some of us have huge projects that simply would take a lifetime to convert… and other just want to stick to php…

I know the node.js is thing is the new kid on the block… please don’t forget about us… we were the guys supporting you from DMX days… and well still supporting you :slight_smile: and some of us will die oneday still using PHP…

@sitestreet @TomD @Antony @transcoderm @s.alpaslan @brad

Dont let @JonL see this… …hehehehe he will burn us just mentioning php… heheheh.

I definitely would love this and of course voted for it. I have so many datasets refreshing with the scheduler which puts a strain on the server.

I think I read that it is not possible with php though. I hope I’m wrong.

Unfortunately with the usual combination of PHP and Apache this is not possible. Sockets require an additional sockets server to be running and that is very difficult to do in the standard hosting configurations.

The only possibility might be if you also use docker than we could be able to add the sockets server to tge docker setup. But this will be only possible if you use docker for deploy and not just shared hosting.

If you already run your own server and have full control of it, there might be more installation options but will require manual installation.

1 Like

100% Thank you for the reply… it was worth the ask. O well scheduler it will remain then… just get a crap load of memory allocated to the server then :slight_smile:

Thanks for looking into this George

image

3 Likes

I found this video online… a bit older but I understand clearly now where @George is coming from… websockets in php is possible… BUT… it NOT EASY at all… and have many other factors that comes into play… with other limitations as well…

For those whom are interested… here is a link to the video…

Realtime PHP Using Websockets - Jeff Kolesnikowicz @jkolez
https://www.youtube.com/watch?v=Q7Us_DjMbXU

And maybe for the real hardcore coders… and guys that really want to give it a go…

Socket.io & PHP: Overview how PHP will be used with socket.io

A Full 1 - 9 part video tutorial
https://www.youtube.com/watch?v=erl2yw-sq6E&list=PLf8BkXI6hjdjVRr2hdHHdCQ_w0MhQgeJQ