Questions tagged [proc-open]
158 questions
0
votes
1 answer
Symfony2 Pdf generation
I need to generate a PDF, I use SpreadPdfGeneratorBundle, the problem is that this bundle use "proc_open" function which is disabled by my webHosting "ex2", I contacted them, they inform me that they cannot enable this function.
the PDF generation…

user3481148
- 3
- 3
0
votes
1 answer
Messing with environment variables for one command
I'm currently planning to use Symfony's ProcessBuilder, which allows to set some environment variable which will be passed onto a proc_open call.
I need for a certain command to change the TMPDIR, and to restore it afterwards, so I was wondering if,…

Talus
- 754
- 7
- 18
0
votes
1 answer
Php background process using proc_open
I would like to open a process with
"Start /b".$cmd
and still have the ability to check its status (.i.e running?)
Is it possible?
When I try to use
proc_open ( "Start /b".$cmd , $descriptorspec , $pipes )
and check the…

Yuri Tupizin
- 21
- 1
- 7
0
votes
1 answer
proc_open called only one time in foreach loop
class CommandExecuter {
const EXEC_FAILED = "EXEC_FAILED";
public function execute($cmd, $sleep, $descriptors, $progressCallback, $progressCallbackParams, $showProgress = false, $callbackTurns = 0) {
log_out("INFO", basename(__FILE__),…

Sascha Heim
- 301
- 1
- 4
- 15
0
votes
1 answer
PHP proc_open blocking reads to stdout until C program terminates
I'm working on an app that uses a fingerprint scanner for user identification. Interacting with the fingerprint scanner is done in a C program with libfprint that I invoke using proc_open in PHP. The fingerprint enrollment process is a multi-stage…

SpaDusA
- 324
- 4
- 14
0
votes
1 answer
PID of external process launched in PHP
I need obtain the PID of a process executed in PHP. A overview of my problem is the next:
I have a script wich execute two external programs (process in MatLab). The second programs must to wait the output of the first one and I need the PID of…

alexGrac
- 21
- 4
0
votes
1 answer
Discovering a complex PHP error
We have an application currently crawling the web on a dedicated CentOS server, using Plesk. The application makes use of proc_open and exec, and it usually works but eventually fails. The error logs sometimes shows 2 interesting errors: Unable to…

Chris Russo
- 450
- 1
- 7
- 21
0
votes
1 answer
Real time update of terminal in php (popen or proc_open)
Objective:
Getting real time update from terminal without new line break.
Currently I am using this
header('Content-Encoding: none;');
set_time_limit(0);
$handle = popen("python -m youtube_dl…

user2978381
- 145
- 1
- 2
- 14
0
votes
1 answer
How to enable Zpanel php function proc_open
I have one VPS server with Zpanel.
I want to enable proc_open function.
I search disable_functions in php.ini file but there is nothing.
My Script say that this function is disabled.
how to fix this problem?
thanks.

user3374605
- 47
- 5
0
votes
2 answers
Can proc_open (php => java) have multiple input streams?
I'm using proc_open in php to call java application, send a large text to it for processing and capture a returned result. Is it possible to pass several text strings (input streams) instead of just one?
This is what I've got at the…

Caballero
- 11,546
- 22
- 103
- 163
0
votes
1 answer
PHP executing two C programs with proc_open
I've created two programs in C. The first gets a number and prints the double value of it and the second prints the quadruple. I want to execute them
through PHP. I've done it using proc_open and it works fine if I execute only one of the programs…

georgia
- 45
- 1
- 7
0
votes
2 answers
Proc_open and Capifony issue
I'm trying to use Capifony with my web app in Symfony2.1 to accelerate the deployment process.
Here is my deploy.rb file :
default_run_options[:pty] = true
set :application, "mywebsite"
set :domain, "mywebsite.com"
set :deploy_to, …

Reveclair
- 2,399
- 7
- 37
- 59
0
votes
1 answer
PHP proc_open - Bail out if process requires input
So - I'm using proc_open() to execute programs such as ssh, rsync, scp etc. to perform backup tasks.
However, in some cases, these processes could become interactive and require input, for example when public key authentication fails for SSH, and it…

untitled8468927
- 676
- 4
- 13
0
votes
1 answer
How to open and close a process with PHP?
How to open and close a process with PHP?
Right now I open a process with the following code:
$zoutput = array();
if( ($fp = popen("7za t \"".$path."\" * -r", "r")) ) {
while( !feof($fp) ){
$fread = fread($fp, 1024);
$line_array…

Jeremy Dicaire
- 4,615
- 8
- 38
- 62
0
votes
3 answers
php - proc_open (or other function that works)
I need to do some command lines through a browser.
What I need to do in a command-line would be:
$login
$passwd
So, how can I do this using the proc_open function?
Or…

RSilva
- 6,753
- 11
- 43
- 49