Questions tagged [proc-open]
158 questions
0
votes
1 answer
How to spawn two processes with proc_open at the same time?
array("pipe", "w"));
$ds1=array(1 => array("pipe", "w"));
proc_open("notepad.exe", $ds, $pipes);
proc_open("notepad.exe", $ds1, $pipes);
?>
I just want to create two notepad.exe processes at a time, but the second processes was…

user1337896
- 1,081
- 1
- 10
- 15
0
votes
3 answers
PHP - proc_get_status 'running' returning false when javaw executable still running
I am executing javaw with an infinite looping java file using this:
$descriptorspec = array(
0 => array("pipe", "r"), // stdin is a pipe that the child will read from
1 =>…

Gaʀʀʏ
- 4,372
- 3
- 39
- 59
0
votes
8 answers
How to run a php file in background
Possible Duplicate:
Best way to manage long-running php script?
I have to built a big email list.Everything works perfectly,but when i submit the form page is loading untill every email is send.So i want this email sending script run in…

Alfred Francis
- 451
- 1
- 6
- 20
0
votes
1 answer
Error while executing proc_open from php script to connect to pgsql
My PHP script trying to import a .sql file in to postgres DB (Cent OS).
To connect th DB from the PHP script it uses:
$sCMD = 'psql -p '.$aDSNInfo['port'].' -d '.$aDSNInfo['database'];
$aDescriptors = array(
0 => array('pipe', 'r'),
1 =>…

Sanjay
- 1,570
- 1
- 13
- 30
0
votes
2 answers
interactive prompts with proc_open() on psql query
I am trying to execute a few PostgreSQL DB commands from a web interface.
I use proc_open() to pipe to the Windows command prompt.
Because psql (and all other postgres command) do not accept the password as an option, I must send the password to the…

ted.strauss
- 4,119
- 4
- 34
- 57
0
votes
3 answers
PHP proc_open environment variables
I am trying to run processes using proc_open() function. As specified on the page - I supplied the custom environment variables and tried to print out. It shows all of my supplied variables + always 3 variables : 'SHLVL', 'PWD', '_='. I would like…

user629034
- 659
- 2
- 11
- 30
-1
votes
1 answer
PHP exec command "ng --version"
I want to check if the user has install angular cli with running ng --version on PHP with exec, proc_open or shell_exec but return is empty.
I dont have problems if I execute in cmd or in terminal's Visual Studio Code in any path on Windows.
I'm use…
-2
votes
1 answer
PHP exec(), shell_exec(), proc_open() & powershell working in CMD but not in browsers
Below scripts working fine in CMD window but not in browsers. Below scripts are in 'front.php', win10's command window command 'php front.php' doing nice but http://localhost/blahblah/front.php sucking me by not triggering 'back.php'. Spent almost…

Raju
- 75
- 10