Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:74843 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 95069 invoked from network); 11 Jun 2014 12:03:25 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Jun 2014 12:03:25 -0000 Authentication-Results: pb1.pair.com smtp.mail=simonsimcity@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=simonsimcity@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.47 as permitted sender) X-PHP-List-Original-Sender: simonsimcity@gmail.com X-Host-Fingerprint: 74.125.82.47 mail-wg0-f47.google.com Received: from [74.125.82.47] ([74.125.82.47:51222] helo=mail-wg0-f47.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 1E/A2-09240-88548935 for ; Wed, 11 Jun 2014 08:03:21 -0400 Received: by mail-wg0-f47.google.com with SMTP id k14so8009438wgh.30 for ; Wed, 11 Jun 2014 05:03:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=LJZZpnRi1Vdy+e5HfsX0JXu6wCQkQYSoji0K9MCIvyg=; b=OfKR+uR/QDdMDeY9S9OtOsJs12TtY2rHsmSSjcqJXNnIfzRHcw8O9U81oM3s7qwcJh iftYTi77GzsGcUh2+P4voE2GoNbmWnU/qZv5NtOdFgXS5s2ILz2ajItZmgGNQXz8bHF+ 9n47VB5ges4KYeyb0qYFjeX3omeD110Irj/3ZicvpdI7c3sl8/bgT1t59E20wDM1NTol b6M/v5r4JI19aXo+VL/OEVKD4qKUkR6TZUVlcCNdr3NuXkiPaFbXUvPBJqCyKcXkbwWg Jk/D1qB5davuzTxprxHgKSxNULUx1EDaKLomR2wqN4MKMNQo2GBooDGRg0Ggt/KljIc/ o3YA== MIME-Version: 1.0 X-Received: by 10.180.126.97 with SMTP id mx1mr19971453wib.29.1402488197625; Wed, 11 Jun 2014 05:03:17 -0700 (PDT) Received: by 10.194.118.227 with HTTP; Wed, 11 Jun 2014 05:03:17 -0700 (PDT) In-Reply-To: <2C3AA922-B514-45C0-940E-EBF6F931BCE1@googlemail.com> References: <2C3AA922-B514-45C0-940E-EBF6F931BCE1@googlemail.com> Date: Wed, 11 Jun 2014 14:03:17 +0200 Message-ID: To: Kevin Ingwersen Cc: PHP Internals Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Own webserver, with PHP plus opcache/similar? From: simonsimcity@gmail.com (Simon Schick) On Wed, Jun 11, 2014 at 2:03 AM, Kevin Ingwersen wrote: > > Hey. > > I am not particulary sure if this is the right list to ask this, but I de= cided I would just try (besides, its the only list I subscribed to). > > For an application that I run, I have bumped against apache=E2=80=99s edg= e: WebSocket support. But the main application is written in PHP, Yii Frame= work, so I do not want to move away from this - and cant do that very easil= y either. So I was thinking about writing my own webserver, maybe in nodejs= or the like, but also take best advantage of PHP. > > What I mean is, that I read somewhere, that php-fpm, or something similar= ?, can stay open as a background process and cache scripts, so they are exe= cuted faster. > > Again, I only skimmed over an article, but sadly do not have access to my= browser history at th emoment - and will not for a bunch of weeks - so I c= an not get back there. > > What would you recommend for this? I want to max out the speed of my PHP = execution time. > > Kind regards, > Ingwie. > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > Hi, Ingwie Yesterday, I stumbled over something that might be helpful for your - maybe not ;) I found out, that there are projects on the way out, that let you store stuff accross requests. I don't know how production-ready these ideas are, but you can use them. They work in development ;) A complete redesigned server in PHP only. Worth a view, I think ... they borowed much from Java. That's also how I found that one. http://www.appserver.io/ React is a project, that should let PHP work as Node.JS works. http://reactphp.org/ I think this is the reason, why you think of using Node.JS at all, right? Having one process, that has some resources in memory and that handles all incoming requests - not an engine that has to be turned on and turns off after each request. Bye Simon