Code Monkey home page Code Monkey logo

phpdesktop's People

Contributors

cztomczak avatar

Watchers

 avatar

phpdesktop's Issues

HIDE MY PHP CODE

Hello And thank you for your quick reply 

one question
is there any way that we can encode our php source code 

thanks


Original issue reported on code.google.com by [email protected] on 27 Jun 2013 at 1:52

MSIE: Cannot Copy and Paste html content with ctrl + c

What steps will reproduce the problem?
1. Turn on msie context menu in json.settings
2. Select some text on the page/application window
3. Hit ctrl + c or right click and select Copy
4. Open notepad and Paste 

What is the expected output? What do you see instead?

It should past the contents of what I copied from the app screen.  Instead it 
pastes the last thing I have copied to clipboard from another program.

What version of the product are you using? On what operating system?

v10 on Windows 7 with IE 9.

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 23 May 2013 at 2:42

Timeout when running script

What steps will reproduce the problem?
1.Running a while statement every 3 minutes
2.Executing a system command
3.

What is the expected output? What do you see instead?
It continues to running until I close the app. That is the expected outcome. 
But instead i get 404 and i can only run for 2 hours php-cgi.exe doesn't 
function.

What version of the product are you using? On what operating system?
Windows server 2008

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 26 Feb 2013 at 6:39

MSIE: Handling navigation errors (404)

When there is a navigation error you will see a page with
standard Internet Explorer message explaining that it failed
to load the page and suggests some solutions. Application
should display its own custom html page in such circumstances,
or allow for a redirect to some php script.

Original issue reported on code.google.com by [email protected] on 14 Jan 2013 at 7:51

PHPDesktop with Chromium (different solution, take a look please)

I had create a version of PHPDesktop using Chromium (with the -app option, 
which give us a SSB mode of the Chromium Browser).

It's a different solution and it's not the way you are doing, but I ask you to 
take a look, if you have time. It's very nice solution and working.

Only bad thing is the size, 29.1 MB, because of the ChromiumPortable, that is 
installed in the PHPDesktop folder.

Download, extract and run Launcher.exe to take a look.

A possible solution too may be find the chrome.exe of the Chrome installation 
in the host computer, but it's not trust that the chrome will be always 
installed in the host computer, so I used the ChromiumPortable version.

You can download it from here:

http://www.mediafire.com/?fwjmm6vphrs3t2e

Original issue reported on code.google.com by [email protected] on 1 Mar 2013 at 9:37

Website Incorrect Link to CEFPython

What steps will reproduce the problem?
1. Go to https://groups.google.com/forum/?fromgroups=#!forum/phpdesktop
2. Click on the link that says: "Project's website: 
http://code.google.com/p/phpdesktop/"


What is the expected output? What do you see instead?
The expected output is that it should go to 
http://code.google.com/p/phpdesktop. Instead, the link actually points to 
http://code.google.com/p/cefpython


Not sure if this is where I should be putting this.

Original issue reported on code.google.com by [email protected] on 9 Apr 2013 at 4:30

MSIE: freezing problem with Mongoose web server

There is a freezing problem in Mongoose 3.6 & 3.7 versions,
this bug seems to be related only to Internet Explorer browser,
Google Chrome works fine with Mongoose. More detailed explanation
of the problem can be read on the mongoose-users forum:

https://groups.google.com/d/topic/mongoose-users/9h9470U9jXY/discussion

In the meantime I will make a PHP Desktop MSIE release with
PHP built-in web server.

Original issue reported on code.google.com by [email protected] on 8 Feb 2013 at 8:50

Add an example of setting temp dir on Win8 to solve tmp dir problems on this OS.

What steps will reproduce the problem?
1. sys_get_temp_dir(); returns "C:\windows"
2. This folder is not writeable by php
3. This causes extensions to malfunction when they need to write temporary files

I would expect the temp folder to be C:\windows\temp or something that I can 
write to.


I am using php_desktop_msie_v10 on Windows 8.


First, I'd like to say that I really like this runtime environment. It's a 
great idea and I've found it very easy to work with. I'm running into this 
problem when trying to use ImageMagick, but I can see it being a problem with 
other extensions as well. I can't find a php.ini directive to change the temp 
folder, so I'm wondering if there's some other way to do it?


Original issue reported on code.google.com by [email protected] on 3 Jul 2013 at 9:02

Add sqlite example

Add "test_sqlite.php" example to the www/ directory:

<?php

error_reporting(-1);
include "./pdo.php";
$db_file = "./my_database.sqlite3";
PDO_Connect("sqlite:$db_file");
echo("PDO_Connect(): success! $db_file created");

?>

The "pdo.php" file can be found on the UsingSQLite wiki page.

Original issue reported on code.google.com by [email protected] on 10 Jun 2013 at 4:37

Provide binaries for both PHP 5.4 and PHP 5.5

PHP 5.5 has dropped support for Windows XP and 2003, the XP system
is still widely used, as of May 2013 XP it has about 37% market share
according to the wikipedia:

http://en.wikipedia.org/wiki/Usage_share_of_operating_systems

PHP 5.4 should still be the default for the PHP Desktop binaries.

Original issue reported on code.google.com by [email protected] on 20 Jun 2013 at 10:08

Check if port 54007 is free before running web-server

The default port for running php web-server is 54007, but
this port might already be occupied by another application
or by our application when running multiple instances. 
Therefore we should check if this port is free and if not
then generate a random port in the range 49152–65535, try
drawing for at least 100 tries until you find a free port.

How to check if port is free? Need to google it.

Original issue reported on code.google.com by [email protected] on 13 Jan 2013 at 5:13

Add application settings file: settings.json

In settings file we could have options for customizing application's window, 
some of the options might allow setting:
 * default window size
 * minimum/maximum window size when resizing
 * disable maximize button
 * center the window on the screen

Original issue reported on code.google.com by [email protected] on 13 Jan 2013 at 1:19

Embed PHP interpreter through PHP API, a replacement for CGI

Currently we are running php web-server at http://127.0.0.1:54007/, the 
downside of it is that it can cause some troubles with firewalls, when running 
application they they may ask user whether this application is allowed to 
listen at 127.0.0.1 on port 54007.

We should make this an option whether we want to act as a web-server or execute 
scripts directly by running command "php.exe -f myscript.php".

The possible advantage of running as a webserver might be a better performance, 
but there is only one user connecting to that web-server in our case, so the 
gain is dubious.

Original issue reported on code.google.com by [email protected] on 13 Jan 2013 at 1:15

External links should load in external browser

When there is an external link on a page we should not load it
in our application's browser control, it should load in system's
default browser.

In our application's web-browser control we should allow loading only
urls starting with http://127.0.0.1:54007/.

Maybe we should allow to customize this behavior, a list of urls
that should be allowed to load in web-browser control and all
others should be run in system's default browser.

Original issue reported on code.google.com by [email protected] on 13 Jan 2013 at 3:04

Custom window themes using HTML 5

This project is great! But IE is obviously too inferior for a project such as 
this. I'll wait for the chrome version instead.

Anyway, here are my suggestions:
Frameless Browser option
Minimize/Maximize using Javascript

Why these suggestions?
Because the main reason I want to create applications using php and html5 is 
because you can go crazy about creating the GUI. There's no limit to what you 
can do with canvas!

Sadly the GUI frame will break the whole idea up. And emulating the 
minimize/maximize button by using javascript or a function that can be called 
using html wold be a great feature :D

Will add more suggestions soon as I think of them. Hope to see the chrome 
release and more power :)

Regards,
Nile 

Original issue reported on code.google.com by [email protected] on 4 Apr 2013 at 5:02

Move extensions to the php executable directory - problems finding ext on Win XP

On Windows XP loading of extensions fail, the following error messages
occur for loading any of the extensions entered in the "php.ini" file:

  PHP Warning: PHP startup: Unable to load dynamic library 
  "php_sqlite.dll" - Application initialization failed due
  to incorrect configuration. Reinstalling the application
  may solve the problem.

It seems that this is a long time bug in PHP when running as CGI
(through php-cgi.exe). The solution seem to be to add the php directory
to the system PATH variable or just move the extension dlls to the
same directory that the "php-cgi.exe" executable resides, see this
post [1].

[1] https://groups.google.com/d/msg/phpdesktop/0E7QK0uy5nw/UnktT3-TEtwJ

Original issue reported on code.google.com by [email protected] on 11 Jun 2013 at 9:30

Encrypt and embed static resources (js/css/images) inside phpdesktop executable

We need a way to protect the www/ directory, using php encoder
is an option, but it won't protect other files in the www
directory.

Before we start work on thiss issue we need to implement Chrome 
engine (Issue 1) and PHP API calls (Issue 3).

If the www directory is embedded in zip file, we should not extract
it anywhere to the file system, the best way is to extract it to
memory, so that it's really hidden. But doing it this way won't
work with web-server (unless we modify web-server to work with our
virtual in-memory filesystem). In Chrome web-server is not needed,
as there Scheme handler that acts similarly to a web-server.

For keeping www directory in memory we will probably need some kind
of Virtual File System.

To execute PHP scripts that aren't accessible through local file
system we would have to hook up to the PHP API (Issue 3).

The www directory can be encrypted in a zip file using AES encryption,
we could use this simple C++ library:
http://www.lomont.org/Software/Misc/AES/AES.php

We will also need some zip library.

An option for the zip file to reside along with the exe file (
data.zip or data.dat - the zip filename could be customized through
settings.json file).

The best option would be to embed that zip file in exe file as
a resource.

Some tool for automating the process of encrypting zip file and
embedding it in exe file would be useful.

Original issue reported on code.google.com by [email protected] on 2 Feb 2013 at 3:13

Examples of embedding other scripting languages using PHP Desktop infrastructure

When Mongoose web-server gets implemented (Issue 14), we will be able
to embed any scripting language that provides a CGI executable. To do
this you would need to make only a single change to the settings.json
file by changing "cgi_executable" path. We might as well provide binary
examples of such embedding on the main page.

Original issue reported on code.google.com by [email protected] on 17 Jan 2013 at 7:32

FATAL error

I want to process a very large TEXT file , but it provide the FATAL error 
(failed to allocated 36 byte)..
I set THE memory_limit to 4000M but it did not change
why there is No PHP.INI in your package

thanks


Original issue reported on code.google.com by [email protected] on 26 Jun 2013 at 1:57

Embedding www/ directory as a resource in exe

A www/ directory could be archived as a zip file and embedded
in the exe as a resource. Create a tool for such embedding of
zip files in an exe and a way to execute php scripts from this 
zip file.

This is not a high priority as protection of sources is already
possible with ionCube, ZendGuard, SourceGuardian, Nu-Coder, as
you can load custom php extensions that act as decoders.

Original issue reported on code.google.com by [email protected] on 13 Jan 2013 at 4:39

Example of running php jobs in background

When developing a desktop application there might be the need to run
a PHP script that does some heavy lifting, thus executes for a
significant amount of time, for that we need to embed a multi-threaded
web server (Issue 14) in the first place.

One way for such an API would be to run php scripts asynchronously
in the background  using for example CURL library. It would be nice
if such API provided a way to provide callbacks, so that you can be notified 
when the background job finished executing, such callback
might be an URL to a php script or a Javascript function that will
get called in the browser, though javascript callback might be hard 
to implement and it is probably only possible if we go with direct
PHP API calls (Issue 3).

Another approach is to create a javascript API for executing php jobs
in background using XMLHttpRequest, this way browser gets notified when
a job has finished and it will play nicely with an embedded web-server.

Original issue reported on code.google.com by [email protected] on 15 Jan 2013 at 7:09

Embed a web-server that can handle multiple requests at the same time

Seems like the PHP built-in webserver is not multi-threaded, it
can handle only one request at the same time, this can be a problem
when executing scripts that take a significant amount of time. Take 
for example this scenario:

test1.php
---------
{{{
<?php
sleep(5);
print("test1 finished.");
?>
}}}

test2.php
---------
{{{
<?php
print("test2 finished.");
?>
}}}

Run test1.php & test2.php, you will see that you have to wait five
seconds before test2.php is executed, as test1.php has made the
web-server busy.

The same problem exists when using direct PHP API calls, see Issue 3.

Original issue reported on code.google.com by [email protected] on 15 Jan 2013 at 5:26

Embedding custom icon in exe file

We should provide a tool for embedding custom icon in the exe file, the 
instructions on the main page to use Resource Hacker and edit icon group 
manually is not acceptable.

Application should load the icon dynamically by reading "icon.ico" file in 
current directory or we should include a tool to easily embed an icon in just 
one click.

Original issue reported on code.google.com by [email protected] on 13 Jan 2013 at 2:55

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.