[PHP-WIN] problems with exec function

2002-09-12 Thread Christian Pichler
Hey there, My problem is following. I want to execute a PHP program (here: test2.php) by another PHP program (here: test1.php) and get the return code of the second executed PHP Program. But I always get the return code 0. Even if I write 'return 50' in test1.php. But the rest of test1.php is wor

[PHP-WIN] argc and argv doesn't work!

2002-09-09 Thread Christian Pichler
Hey there, We would like to use the variables argc and argv. The problem is that argc always has the value 1, whether we pass no, one, two or more parameters. And in the array argv there is only the name of the program. We are working on a computer with Windows 2000 and a local installation of P