baconbrad / php-webkit Goto Github PK
View Code? Open in Web Editor NEWPHP-Webkit is a boilerplate that allows you to package and run PHP applications within a NW.js (formally node-webkit) project.
License: Other
PHP-Webkit is a boilerplate that allows you to package and run PHP applications within a NW.js (formally node-webkit) project.
License: Other
Lint code to verify its clean and run tests. I suggest tests in mocha, maybe running with gulp.
Nice project, thanks for sharing with the community!
Not positive this is really an issue but having some problems and wanted to make sure.
When running "install npm" in project directory, get a warning:
"npm WARN package.json [email protected] No repository field."
Is this a warning I should be concerned with or just an alert?
Thanks for your time.
Hi,
It's my first time working working with php-webkit.
I've followed the instructions but when I run the application I get stuck at the Starting application window ...
Here is my command line output :
nw/nw dental.nw
[20594:0829/185753:ERROR:browser_main_loop.cc(170)] Running without the SUID sandbox! See https://code.google.com/p/chromium/wiki/LinuxSUIDSandboxDevelopment for more information on developing with the sandbox on.
ATTENTION: default value of option force_s3tc_enable overridden by environment.
[20594:0829/185755:INFO:CONSOLE(99)] "", source: /tmp/.org.chromium.Chromium.GfCXKC/lib/bridge.js (99)
I am running on ubuntu linux.
Please let me know if I should attach more info.
Thanks,
Mostafa
Please add a doku about how to start use php-webkit with a basic example.
Instead of maintaining binaries for php in the repo, why not create a submodule in git to pull the php repo.
I have been trying to get this working for few days. Everything seems to go fine, get past the starting application page and then a blank page is shown.
Can't seem to get past this point and cannot find any logs for troubleshooting. I have a the phpinfo script in the application folder.
Is there something you can think of to help me solve this issue?
Many thanks for your input and sharing this with us.
Is any possibility to pass data from main.js to application/index.php ? I have a little project that requires arduino and I use serialport in main.js to take data from arduino and with socket.io I want to emit that data to application/index.php .
This is my socket.io test function in main.js
var io = require('socket.io').listen(server);
function sendTime() {
io.emit('time', { time: new Date().toJSON() });
}
setInterval(sendTime, 100);
This is my function from index.php:
socket.on('time', function(data) {
console.log(data.time);
});
Any guys maintaining this project ?
Hi All,
i can't use height and width not same what i want on window.open(url, "_blank", "toolbar=no, scrollbars=yes, resizable=yes, top=50, left=500, width=400, height=400")
also i have try win.open(url, "_blank", "toolbar=no, scrollbars=yes, resizable=yes, top=50, left=500, width=400, height=400")
i see on folder "php-webkit" already use
var gui = require('nw.gui');
var win = gui.Window.get();
but why can't use win.open() ?
i thing need use
var gui = require('nw.gui');
var win = gui.Window.get();
on .php where on it.
but still can't open window.
any body please help.
Thank You
please correct package.json, it appears app will not load as there are deprecated elements nwjs/nw.js#3972
I downloaded your code, installed it on my linux machine and ran it. I got the phpinfo() page successfully. Then I downloaded CodeIgniter 2.0.2 and installed that under application and ran that and got the default CodeIgniter page. Then I tried Simple Login with the CodeIgniter (after installing MySQL, PHPMyAdmin, etc...). I can get to the login page but when I submit my credentials, it seems to do something funny with accessing the database (I'm guessing that php-webkit application might not have access the same way that the Apache version does to drivers, etc... and I may need to add them) or with routing:
I then ran the code against localhost/Apache (after copying it from the /php-webkit-master/application directory to the /var/www/html directory) and it ran ok there (below is a picture after logging in):
Thanks very much for sharing your project! I'm learning both Node.JS and PHP so I've enjoyed tinkering with it and compared to most projects on the web, I've been able to get pretty far with it.
Cookies and Sessions need to be supported via the middleware. Currently the lack of this feature breaks the ability to have NW.js recognize sessions/cookies set up by the PHP application.
'.' is not recognized as an internal or external command, operable program or batch file.
Referring to the .
in ./node_modules/gulp/bin/gulp.js test
.
README.md file still states information about packaged PHP binaries. We no longer supply these.
I have tested and confirmed that php-webkit does not work with this release. Currently I am not officially supporting the NW.js 0.13.0 Alpha since many APIs are broke due to refactoring. This is supposed to be fixed when 0.13.0 is finally released. So understandably I will not be doing 0.13.0 specific bug fixes until that happens.
Release Notes: https://groups.google.com/forum/#!msg/nwjs-general/IqfH1RXNGlw/2PgeRGHO-B4J
Currently hard coded as 1. PHP info should read 200 for a successful response. Might interfere with a PHP projects ability run or function correctly.
Need to implement node.js clustering to the express server. It will help improve performance on multi-core machines as well as add support for more advanced PHP applications.
Currently hard coded to be blanked. Might interfere with a PHP projects ability run or function correctly.
Unsure what changed since my last test. But fileExists
returns ENOTE when packaged PHP is not found. php-cgi expected.
Hi,
Would like to know in what condition can overcome this error of UPLOAD_ERR_PARTIAL when trying to post image in NW.js app wrapped under PHP-webkit? I test in normal browser is fine, but when migrate the exact same HTML + PHP script to PHP-webkit it get the error of upload partial.
it gives me mysql driver not found in nw window after application start successfully.
so how to include that driver and where to include?
TODO: AUTHORS file and proper attributions for contributors and original author of node-php.
Create generators for scaffolding applications to make it easier to start using php-webkit
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.