php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #76064 Give me client-side php
Submitted: 2018-03-07 18:21 UTC Modified: 2018-03-07 18:51 UTC
From: rob_neal at rocketmail dot com Assigned: daverandom (profile)
Status: Closed Package: *General Issues
PHP Version: 7.2.3 OS: all
Private report: No CVE-ID: None
 [2018-03-07 18:21 UTC] rob_neal at rocketmail dot com
Description:
------------
JavaScript is great, flexible, powerful, widely useful. It just works and just about everywhere. Even now it works on the server (node.js; etc?) You can implement OOP using JS. But php is awesome too. I'd argue more awesome. I believe, unless I've missed something new and great and in the works, that php is still shackled to the server (yes, it is, as of this post). Why!-why I tell you! Give me php on the client-side! Let me run it in the browser! Let me have all those latest-and-greatest features provided by php 7 in the browser! Let me stop having to pay attention to my concatenation operators ("." and "+") and more importantly go with a single language syntax. Let's see...do I ".push(val)" that element into my array or do I do a "[ ]=$val;". Dollar signs in front of my variables? Ugh. Let me type-hint for function args/parameters and return values. Let me create an object-hierarchy on the client-side without some crazy work-around to achieve object-member scope/visibility/hiding. I admit, my code-base is invested heavily in php. But php is damn good also. JavaScript runs on the server now. Why doesn't PHP run on the browser now. Let's get that damn library running. I know it's doable since I can run XAMPP on my local machine. Please put that PHP engine in the browser.

Expected result:
----------------
Heavenly.

Actual result:
--------------
Void.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2018-03-07 18:51 UTC] daverandom@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: daverandom
 [2018-03-07 18:51 UTC] daverandom@php.net
The PHP project has no control over whether browsers decide to implement this -
 which they won't, for reasons that are too numerous to detail here.

If you wish to pursue this, you need to take it up with the developers of web browsers.
 [2018-03-07 19:10 UTC] spam2 at rhsoft dot net
frankly - how do you imagine a implementation of PHP in a browser given the ton of libraries it depends on and how to make it secure given tons of functions dealing with local files nobody want's to expose to a random website 

won't happen in this life as it has no valid usecase in a browser
 
PHP Copyright © 2001-2018 The PHP Group
All rights reserved.
Last updated: Mon Dec 17 03:01:26 2018 UTC