Re: Curl-able daemon on Ubuntu + Apache + PHP?
| From: | Rene Veerman | Date: | Sun, 14 Apr 2019 06:37:08 +0000 |
| Subject: | Re: Curl-able daemon on Ubuntu + Apache + PHP? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-326761@lists.php.net to get a copy of this message | ||
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
>>
>> 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.
>>
>