Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:74837 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 59041 invoked from network); 11 Jun 2014 03:03:19 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Jun 2014 03:03:19 -0000 Authentication-Results: pb1.pair.com smtp.mail=ingwie2000@googlemail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ingwie2000@googlemail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain googlemail.com designates 209.85.212.173 as permitted sender) X-PHP-List-Original-Sender: ingwie2000@googlemail.com X-Host-Fingerprint: 209.85.212.173 mail-wi0-f173.google.com Received: from [209.85.212.173] ([209.85.212.173:50883] helo=mail-wi0-f173.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D6/00-58241-5F6C7935 for ; Tue, 10 Jun 2014 23:03:18 -0400 Received: by mail-wi0-f173.google.com with SMTP id cc10so2886446wib.6 for ; Tue, 10 Jun 2014 20:03:15 -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=W/qX7HOgY66UrCy7Q5egnRWwRCuY2rWc/AfcSvMr44c=; b=SHeWm1kR+8ZdlgUSwp9+AP8lvepg7h3cn1bzoZCOOXsq+hQ73vyxsjht+QiikOI+0d fPnh53EVHKhLcrFJBrJL5ylA2dZMxrIcis89m8ZvUpiiS7qGJMKbU0nc+yB9OKP+m8kb JJJ6qON5CExUgaeo+Ir8KADvChk4wCDPtQ4PLrERW772701VHfrGFv8tdV0a2MpDorb7 VSFh1BmiW7NBWeQKcPxMUMTP+CbvK1vDt9nT5lP7K1YOmNAS7jn6+vyAM60gGLPtK3N1 WmdHa11j3DVNoFz1g3doP30n3faIoLxlG3BGTdyrHYiMsgM+0YDsd2/EfFIpQuc4rrq6 2gvg== X-Received: by 10.180.186.8 with SMTP id fg8mr34817870wic.39.1402455795311; Tue, 10 Jun 2014 20:03:15 -0700 (PDT) Received: from server.speedport_w723_v_typ_a_1_01_001 (p5B15213D.dip0.t-ipconnect.de. [91.21.33.61]) by mx.google.com with ESMTPSA id y5sm56310254eee.1.2014.06.10.20.03.13 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 10 Jun 2014 20:03:14 -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 05:03:17 +0200 Cc: PHP Internals Content-Transfer-Encoding: quoted-printable Message-ID: References: <2C3AA922-B514-45C0-940E-EBF6F931BCE1@googlemail.com> To: Tom Samplonius 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 04:16 schrieb Tom Samplonius : >=20 > On Jun 10, 2014, at 5:03 PM, 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 > ... >=20 > You may want to look at how this is done in Phabricator = (http://phabricator.org/). Besides, overall being a very interesting = piece of modern PHP code, Phabricator uses a very simple node.js server = for websockets. The PHP code sends messages to node.js, and node.js = distributes them to any listening users. Phabricator is released under = the Apache license, so you can cherry pick code easily. >=20 >=20 >=20 > Tom I can pretty much imagine how this works, I am trying to obtain some = osurce at the moment. But what I was really interested in, is how to make PHP use previously = ran scripts. Like I run them once, and part of it, like classes and = such, stay in memory, instead of having to =84recompile=93 the script. I = thought this is doen using OPcache=85 Any way I can take advantage of = somethin glike this?=