Giter Site home page Giter Site logo

baconbrad / php-webkit Goto Github PK

View Code? Open in Web Editor NEW
87.0 87.0 29.0 20.43 MB

PHP-Webkit is a boilerplate that allows you to package and run PHP applications within a NW.js (formally node-webkit) project.

License: Other

PHP 0.14% JavaScript 90.51% HTML 4.98% CSS 4.36%

php-webkit's People

Contributors

gitter-badger avatar jyapayne avatar wookiecooking avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

php-webkit's Issues

linting / tests

Lint code to verify its clean and run tests. I suggest tests in mocha, maybe running with gulp.

npm Warn Error about package.json

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.

Stuck at "Starting application..."

Hi,
It's my first time working working with php-webkit.
screenshot 2015-08-29 18 59 51

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

sub module for php

Instead of maintaining binaries for php in the repo, why not create a submodule in git to pull the php repo.

Blank Page After Starting Application Screen

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.

How can I pass something from php-webkit/main.js to application/index.php

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);
});

how to use window.open(url) on php-webkit

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

config

please correct package.json, it appears app will not load as there are deprecated elements nwjs/nw.js#3972

Redirection Issue?

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:
1
2

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):
3

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

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.

Test fails on Windows

'.' 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.

Update README.md

README.md file still states information about packaged PHP binaries. We no longer supply these.

REDIRECT_STATUS

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.

Clustering

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.

DOCUMENT_ROOT

Currently hard coded to be blanked. Might interfere with a PHP projects ability run or function correctly.

Get UPLOAD_ERR_PARTIAL when upload image to PHP-Webkit

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.

Attributions to authors

TODO: AUTHORS file and proper attributions for contributors and original author of node-php.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.