Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:78713 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 19309 invoked from network); 5 Nov 2014 11:12:31 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Nov 2014 11:12:31 -0000 Authentication-Results: pb1.pair.com smtp.mail=florian@margaine.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=florian@margaine.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain margaine.com from 209.85.213.180 cause and error) X-PHP-List-Original-Sender: florian@margaine.com X-Host-Fingerprint: 209.85.213.180 mail-ig0-f180.google.com Received: from [209.85.213.180] ([209.85.213.180:51595] helo=mail-ig0-f180.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C3/41-10214-E160A545 for ; Wed, 05 Nov 2014 06:12:31 -0500 Received: by mail-ig0-f180.google.com with SMTP id h3so1140372igd.13 for ; Wed, 05 Nov 2014 03:12:28 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=c4/mcgPA2HNv9R33d7JhLP1kQ1YVBkhirnfpPWzssD8=; b=AP9Su2jSEeIxg9Iknzfp222Wy7/qyDiolQH1a3CwN4Q/62u6roGqAoFFSOR2zebVCr NBwr3WTdccJx/a4VOCQe9JKsAN7jUDIYV/fNuKH+s5nh8lFBqd2loR1iooBl5yRBVINH 2gaxDBbQQgkNW7RPpuvXx9vsZQtaVT1C3b89+pbCEsXZI1fwwaErCrLbK266gVKtcYLt Jh2e7Qi5F33UeUSEo8wKXZT2Eeuvv8rxjrup3si6YFfri70ShnBx7IQZos/Vavs16kjh 4X4tCUOM368aK2JcWw3Bn4/9/vZvcjVP8qOhUEn59+/BRo2hl4w0arFwVvGizAuOAU0h 6o9w== X-Gm-Message-State: ALoCoQl8uOejznDO7bJhg9eF9FmYIAZ5eo+zqfI+5m2lpiI2B1XBPltrFV1TjxggpgBpO50cEEqS X-Received: by 10.42.230.15 with SMTP id jk15mr3707007icb.55.1415185947898; Wed, 05 Nov 2014 03:12:27 -0800 (PST) MIME-Version: 1.0 Received: by 10.107.31.149 with HTTP; Wed, 5 Nov 2014 03:12:07 -0800 (PST) X-Originating-IP: [90.42.228.19] In-Reply-To: <545A02AF.9010307@lsces.co.uk> References: <545A02AF.9010307@lsces.co.uk> Date: Wed, 5 Nov 2014 12:12:07 +0100 Message-ID: To: Lester Caine Cc: PHP internals Content-Type: multipart/alternative; boundary=001a11c35e34b74eb705071aa7a0 Subject: Re: [PHP-DEV] Browser side PHP From: florian@margaine.com (Florian Margaine) --001a11c35e34b74eb705071aa7a0 Content-Type: text/plain; charset=UTF-8 Hi, On Wed, Nov 5, 2014 at 11:57 AM, Lester Caine wrote: > Before you fall of your chairs let me expand on that ... > > Many of the sites I'm supporting are being chased by the we want your > work mob, and being told they "Must have apps to stay in business". Of > cause that means both an android and an apple one with a discount on the > pair. BUT in most cases a restyling of the existing website to be more > mobile/tablet friendly layout is all that is needed. To that end I've > finally nailed a configuration of bootstrap3 which will work with my > smarty templating and legacy jquery browser side actions. ( Fourth setup > I've worked through as previous 'solutions' proved dead ends! ) > > Very few of us use PHP as a programming language in isolation to > anything else? Although that is perhaps not obvious from some of the > discussions. Areas like better JSON or HTTP support all fall into the > camp of integration with the rest of the infrastructure? Something which > is now totally different to what existed when PHP5 first came out! > > Eclipse provides me with a flat workbench where js, css, raw html, php, > smarty tpl, sql, and even c/c++ all co-exist and the right highlighting > and support tools are provided. Javascript is the obvious choice for > browser side programming, and browser side templates like bootstrap rely > on it to make elements of the layout work, and PHP is more than happy > feeding that functionality, but trying to maintain two different > languages between the two ends is perhaps not ideal? > > Am I totally mad thinking that a tool that converts perhaps a lite > version of PHP into Javascript might plug a hole in the infrastructure? > Parts like validation beyond what html5 has added is one I've just hit > where the original site passed form data back to the server and pushed > validation errors back, so we have the specialist bits in php already. > But while html5 validation does some of the job, some javascript will be > needed to fill the gaps ... with a fall back to PHP for non-html5 browsers. > > Perhaps something does already exist that I'm missing? > This seems kind of off-topic for this mailing list, isn't it? > > -- > Lester Caine - G8HFL > ----------------------------- > Contact - http://lsces.co.uk/wiki/?page=contact > L.S.Caine Electronic Services - http://lsces.co.uk > EnquirySolve - http://enquirysolve.com/ > Model Engineers Digital Workshop - http://medw.co.uk > Rainbow Digital Media - http://rainbowdigitalmedia.co.uk > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > Regards, -- Florian Margaine --001a11c35e34b74eb705071aa7a0--