[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

php and passthru() in debian/sparc





hi all!
i'm trying to execute a shell command using passthru() in a web page (of course this page is write in php)

in my php page i have:

...
$comando="./mycommand";
 passthru($comando, $myoutput);
 echo $myoutput;

if i run this script in my shell using:

php4 ./myscript.php

it works fine...

if i launch it from my web (i run apache Apache/1.3.33 (Debian GNU/Linux) PHP/4.3.10-13 ) php works but in output (echo $myoutput) i obtain the string "11" ...what's this code?is an error code?

this machine is a debian sarge...on a Sparc


on my woody (installed on an x86 machine) this script works fine..

there is some changes between apache on debian 3.1 ?

some ideas?

thanks!
L.






Reply to: