Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bundle php.exe along with php-cgi.exe to allow command line script execution #96

Closed
GoogleCodeExporter opened this issue Aug 28, 2015 · 5 comments

Comments

@GoogleCodeExporter
Copy link

Currently only php-cgi.exe is bundled with phpdesktop binaries, in the php/ 
directory. People may run into issues when they try to run php scripts from 
command line using php-cgi.exe, as this is a CGI interface for interacting with 
web servers and it works differently. You are not supposed to run php scripts 
from command line using php-cgi.exe.

If you try to run some php scripts in the background using this code:

  $backgroundexec = PHP_BINARY . " " . getcwd() . "\background.php " . $argument;
echo $backgroundexec;
  shell_exec($backgroundexec); 

It will cause creation of infinite number of cmd.exe and php-cgi.exe processes.

Original issue reported on code.google.com by czarek.t...@gmail.com on 16 Mar 2014 at 2:41

@GoogleCodeExporter
Copy link
Author

Update example on the KnowledgeBase wiki page that uses php-cgi.exe to launch 
script.

Original comment by czarek.t...@gmail.com on 16 Mar 2014 at 3:17

@GoogleCodeExporter
Copy link
Author

[deleted comment]

@GoogleCodeExporter
Copy link
Author

Original comment by czarek.t...@gmail.com on 9 Aug 2014 at 6:29

  • Added labels: NextRelease

@GoogleCodeExporter
Copy link
Author

PHPDesktop Chrome 31.7 released.

Original comment by czarek.t...@gmail.com on 3 Oct 2014 at 4:41

  • Changed state: Fixed

@GoogleCodeExporter
Copy link
Author

Project will move to Github. Find this issue at the new address (soon): 
https://github.com/cztomczak/phpdesktop/issues/96

Original comment by czarek.t...@gmail.com on 24 Aug 2015 at 3:28

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant