kumargoudham / phpdesktop

Automatically exported from code.google.com/p/phpdesktop
0 stars 0 forks source link

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

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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 commented 9 years ago
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 commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago

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

GoogleCodeExporter commented 9 years ago
PHPDesktop Chrome 31.7 released.

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