Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:74845 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 2394 invoked from network); 11 Jun 2014 12:58:27 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Jun 2014 12:58:27 -0000 Authentication-Results: pb1.pair.com header.from=ingwie2000@googlemail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=ingwie2000@googlemail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain googlemail.com designates 209.85.212.179 as permitted sender) X-PHP-List-Original-Sender: ingwie2000@googlemail.com X-Host-Fingerprint: 209.85.212.179 mail-wi0-f179.google.com Received: from [209.85.212.179] ([209.85.212.179:48798] helo=mail-wi0-f179.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F6/F3-09240-17258935 for ; Wed, 11 Jun 2014 08:58:26 -0400 Received: by mail-wi0-f179.google.com with SMTP id cc10so1063776wib.6 for ; Wed, 11 Jun 2014 05:58:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=uxliX3FaljZcYJ8K/A/Wdlv0kjqpaCN9d/5EOaFveGs=; b=Qp9vJcvNg2xBO7y5hbhNuTDXKDrGp6LVYzr0rG4biKSgtSEbsqGRlXD8Ca+Gfz/qfP /9PnP8f1mz2tFP7vVjb3FzCLlZN/n5cGGNaL58cjRR0JbViNPDRfV/2nZt15Yet9scqE 1w+bnIdgzVNrCZuH3LBlNNlx47IRbo6mO0sUOcudX2SkEjHI5E87MpyjpCqgEX57IkYx mQ+i4gnybpdjxOSK+tB7gj57QY8SX8bbq099YcoymgzNEUjP1x+boLhXYZqi5xfvvInJ S3vI04FZAPDYSGCuFDsP3ymnQ70ljjovuzPhxX+CaQR6+POeMbJcgJLCHl+6oVk17Pmy o7Ig== X-Received: by 10.180.12.33 with SMTP id v1mr33139629wib.0.1402491502067; Wed, 11 Jun 2014 05:58:22 -0700 (PDT) Received: from server.speedport_w723_v_typ_a_1_01_001 (p5B1535EF.dip0.t-ipconnect.de. [91.21.53.239]) by mx.google.com with ESMTPSA id 18sm34149348wju.15.2014.06.11.05.58.20 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 11 Jun 2014 05:58:21 -0700 (PDT) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 7.2 \(1874\)) In-Reply-To: Date: Wed, 11 Jun 2014 14:58:19 +0200 Cc: PHP Internals Content-Transfer-Encoding: quoted-printable Message-ID: References: <2C3AA922-B514-45C0-940E-EBF6F931BCE1@googlemail.com> To: Simon Schick X-Mailer: Apple Mail (2.1874) Subject: Re: [PHP-DEV] Own webserver, with PHP plus opcache/similar? From: ingwie2000@googlemail.com (Kevin Ingwersen) Am 11.06.2014 um 14:03 schrieb Simon Schick : > On Wed, Jun 11, 2014 at 2:03 AM, Kevin Ingwersen > wrote: >>=20 >> Hey. >>=20 >> I am not particulary sure if this is the right list to ask this, but = I decided I would just try (besides, its the only list I subscribed to). >>=20 >> For an application that I run, I have bumped against apache=92s edge: = WebSocket support. But the main application is written in PHP, Yii = Framework, so I do not want to move away from this - and cant do that = very easily either. So I was thinking about writing my own webserver, = maybe in nodejs or the like, but also take best advantage of PHP. >>=20 >> 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 executed faster. >>=20 >> 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 can not get back there. >>=20 >> What would you recommend for this? I want to max out the speed of my = PHP execution time. >>=20 >> Kind regards, >> Ingwie. >> -- >> PHP Internals - PHP Runtime Development Mailing List >> To unsubscribe, visit: http://www.php.net/unsub.php >>=20 >=20 > Hi, Ingwie >=20 > Yesterday, I stumbled over something that might be helpful for your - > maybe not ;) >=20 > 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 ;) >=20 > 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/ >=20 > React is a project, that should let PHP work as Node.JS works. > http://reactphp.org/ >=20 > 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. >=20 > Bye > Simon Hey! I have seen Appserver before, it looks pretty interesting indeed, and I = found it originally due to the pthreads extension. Yes, I want to use nodejs to drive the very root - to handle incoming = requests and to even support Websockets, which are a thing for my new = project. :) But thanks for pointing these out, Ill look at them! Kind regards, Ingwie.=