proc-open Questions

3

Solved

I've tried to get output from proc_open method in php, but, when I print it, I got empty. $descriptorspec = array( 0 => array("pipe", "r"), 1 => array("pipe", "w"), 2 => array("file", "files/t...
Vaporize asked 16/5, 2011 at 8:34

2

Solved

I am trying to make a website where people can compile and run their code online, thus we need to find an interactive way for users to send instructions. Actually, what first comes to mind is exe...
Range asked 3/5, 2013 at 3:50

2

Solved

I have a problem with composer, it has always worked well but now it doesn't want to... Here is the result of a simple composer install command : bob@SRV04:~/testdir$ composer install Loading comp...
Footpace asked 24/6, 2019 at 8:1

2

Solved

I am trying to execute a process using proc_open. The I/O for the process is handled by the pipes !! $descriptorspec = array( 0 => array("pipe", "r"), 1 => array("pipe", "w"), 2 => arr...
Bravar asked 28/6, 2012 at 15:4

1

Solved

For anyone wondering, after leaving it all for a couple hours it now works perfectly. I'm trying to pass a video file to VLC using PHP as a proof of concept for an upcoming project proposal for so...
Leboeuf asked 28/2, 2016 at 13:16

3

Solved

I've spent a while on this but can't get this to work, I apologize as I asked a somewhat related question about this earlier but deleted it so I could do more research to narrow down the question, ...
Colossian asked 6/8, 2010 at 4:11

1

Solved

I've encountered the issue with proc_open on Windows, when trying to convert a wmv file (to flv), using ffmpeg, however I suspect I'll encounter the same scenario whenever certain conditions occur....
Lodmilla asked 2/7, 2015 at 20:33

1

Solved

I'm reading streams in PHP, using proc_open and fgets($stdout), trying to get every line as it comes in. Many linux programs (package managers, wget, rsync) just use a CR (carriage return) charact...
Scevo asked 12/1, 2015 at 17:50

4

Solved

The problem I was using a function that made use of proc_open() to invoke shell commands. It seems the way I was doing STDIO was wrong and sometimes caused PHP or the target command to lock up. Th...
Malloch asked 16/5, 2011 at 8:26

1

So, In PHP on Windows: is it possible to both run an executable in the background AND retrieve its PID? I've deduced that it's possible to accomplish both tasks separately, but not together. Backg...
Contreras asked 23/8, 2011 at 13:4

2

Solved

PHP's proc_open manual states: The file descriptor numbers are not limited to 0, 1 and 2 - you may specify any valid file descriptor number and it will be passed to the child process. This allow...
Missy asked 24/4, 2012 at 19:21

1

Solved

Warning: proc_open(): Missing handle qualifier in array in C:\...\updatedots.php on line 102 I'm trying to open notepad the close it after 2 seconds. This is my code: $descriptorspec = array( ...
Maghutte asked 18/5, 2011 at 13:55

3

I have a utility function used for executing a program through CLI (cmd, bash etc). It returns an array of 3 items: STDOUT, STDERR and EXIT CODE. So far, it's been working nicely without issues. I...
Skill asked 23/1, 2011 at 20:38

5

Solved

I'm trying to spawn multiple processes at once in PHP with proc_open, but the second call won't start until the first process has ended. Here's the code I'm using: for ($i = 0; $i < 2; $i++) { ...
Terryn asked 20/8, 2010 at 13:21
1

© 2022 - 2024 — McMap. All rights reserved.