Questions tagged [proc-open]
The proc-open tag has no usage guidance.
proc-open
159
questions
0
votes
0
answers
23
views
Why is a full screen linux console application opened with php proc_open() not responding to keystrokes I send it through the stdin pipe?
I'm trying to launch the Linux console application yewtube using php, and then have php interact with it programmatically. The application allows you to search youtube and then select items from the ...
1
vote
1
answer
117
views
php how to use proc_open to pipe the content of a variable to the process
from a php script I am trying to run an external command which is taking its input from a previous command with a pipe (at os level).
The command I want to use is pdftotext -nopgbrk -layout myfile.pdf ...
0
votes
0
answers
39
views
proc_open disabled but still getting error
Class App\Http\Controllers\KeyfeaturesController located in ./app/Http/Controllers/KeyFeaturesController.php does not comply with psr-4 autoloading standard. Skipping.
Illuminate\Foundation\...
0
votes
1
answer
184
views
Proc_open problem. How to publish flare config file
I have installed php script made in laravel for my web-site: mirkoviclux.rs and everything worked perfectly and today I got this error.
The Process class relies on proc_open, which is not available ...
0
votes
0
answers
127
views
How does php's proc_open perform interactive operations
I try to operate "php xxx.php" with proc_open, it works fine, but I have a problem when I try to interact with mysql, I can't get the response data of mysql, it is output directly to the ...
1
vote
0
answers
34
views
while using proc_open(), my time stamp to terminate the function is not working properly
I am having issues with my php code. I am executing c++rom fffff code using proc_open() in php.
//from another function I'm calling this function with parameters execute("code.exe", $STDIN, ...
0
votes
1
answer
130
views
PHP fwrite to proc_open to Python failing with ō character but not others in text2image Daemon
I created a Daemon to wrap around Invoke-AI command line interface https://github.com/invoke-ai/InvokeAI to generate images for my website.
My issue is that it keeps failing on some artists names with ...
0
votes
0
answers
464
views
proc_open() function returns 'PHP' is not recognized
I am using Wamp I want to get output from the file opened with proc_open()
$cwd=null;
$description = array(
0 => array("pipe", "r"),
1 => array("pipe", &...
1
vote
2
answers
97
views
PHP Execute with > - Close
i try to make this:
<?php
error_reporting(E_ALL);
echo "<HTML><BODY>";
exec("echo Hallo > /tmp/testtt.txt", $output, $retval);
echo "Rückgabe mit Status $...
0
votes
0
answers
50
views
Add proc_open $pipe inputs on the go dynamically
I am trying to create a C program compiler + executer using PHP.
My PHP code is
<?php
$cwd='/path/to/pwd';
$descriptorspec = array(
0 => array("pipe", "r"),
1 ...
0
votes
1
answer
470
views
run command line program and enter password from php
I have a command line program which requires for the user to type a password in order to run. I want to run it and enter the password through a php script.
I have tried using proc_open, using the ...
0
votes
1
answer
787
views
Passing STDIN to Ghostscript in PHP proc_open
I want to use Ghostscript command within PHP without writing the input or output in files.
$cmd = "gs -sOutputFile=%stdout% -sDEVICE=pdfwrite -dJOBSERVER -";
$descriptorspec = array(0 => ...
0
votes
1
answer
232
views
Execute Java File and Its Input in PHP
So i want to make a program that can execute java file and the input (input file is from me with .in extension) in php. After the execution i want to get the result as output file (so i can check ...
0
votes
0
answers
97
views
reopen a pipe in php for writing new commands to an executable
I'm trying to send multiple commands (separated) to a program using php, I'm using /bin/bash for my test now and I'm facing a problem when I try to reopen the pipe to write the new command. here is ...
1
vote
1
answer
265
views
Calling FFmpeg through PHP proc_open always causes output to be sent STDERR instead of STDOUT
I'm trying to call FFmpeg using proc_open and then I try to read the output of STDOUT but output is only ever sent to STDERR even when there is no error.
My code seems to be correct because when I use ...