tags:

views:

180

answers:

1

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!

A: 

Try doing:

proc_open('/usr/bin/php /path/to/your/script.php', $descriptorspec, $pipes);
Alix Axel
Still showing same error Alix.
fadib