Re: Curl-able daemon on Ubuntu + Apache + PHP?

From: Date: Sun, 14 Apr 2019 07:01:45 +0000
Subject: Re: Curl-able daemon on Ubuntu + Apache + PHP?
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-326762@lists.php.net to get a copy of this message
Found it ! :) https://www.php.net/manual/en/sockets.examples.php Thanks for the help :) On Sun, Apr 14, 2019, 08:37 Rene Veerman <rene.veerman.netherlands@gmail.com> wrote: > Well I intend to store and make searchable and aggretable large quantities > of JSON, which always need a json_decode() into RAM from a filesystem. > > And I'd really like to keep the daemon that holds such decoded data in RAM > also written in PHP. > > Can you provide some example code for a PHP daemon, started from init.d/ , > which listens for CURL requests on a custom port? > > > On Sat, Apr 13, 2019, 18:17 Stuart Dallas <stuart@3ft9.com> wrote: > >> I'm confused about exactly what you're proposing. What exactly is it? >> >> A "curl-able daemon" would be anything that talks the HTTP protocol. This >> is pretty trivial to implement in PHP but I'd recommend against it. There >> are reasons why we tend to use a separate HTTP server when deploying web >> services written in PHP. >> >> Would you care to elaborate on the details of your idea? >> >> -Stuart >> >> >> On Sat, 13 Apr 2019 at 15:27, Rene Veerman < >> rene.veerman.netherlands@gmail.com> wrote: >> >>> I need to avoid the overhead on gazillions of JSON and BSON decide >>> operations, so I need something of a curl-able daemon running on the same >>> machine as a standard Apache + PHP website is run from, _in PHP_. >>> >>> As outlined at >>> ÅéšKN¼ >>> ‘Y¾j^¨(ªhttps://m.facebook.com/story.php?story_fbid=114208843100260&id=100035334347648 >>> >>> A simple solution that can run from Ubuntu in init.d with a call to >>> command line PHP will do nicely. >>> >>> And I fully intend to open source this one to all :) >>> >>> It'll be called FolderDB. >>> >>> Thanks for your time. >>> >>

« previous php.general (#326762) next »