proc_open() path problem
Posted
by fadib
on Stack Overflow
See other posts from Stack Overflow
or by fadib
Published on 2010-01-25T04:35:12Z
Indexed on
2010/03/29
6:03 UTC
Read the original article
Hit count: 260
Hi, i'm using linux and php 5.2.12
i have problem with executing proc_open
if i use
proc_open('php script.php', $descriptorspec, $pipes);
it will show me error
sh: /php: No such file or directory
if i use
proc_open('/usr/bin/php script.php', $descriptorspec, $pipes);
or
proc_open('php script.php', $descriptorspec, $pipes, '/usr/bin/');
it still show me same error.
i have no idea why it always append slash in front of command.
any help please?
thanks!
© Stack Overflow or respective owner