|
Posted by J.O. Aho on 11/06/06 13:34
Shift wrote:
>> if you add "echo $lines" at the end of your script, what is outputted
>> then?
> echo "$lines" return Array(),
> print_r($lines) return the list directory in both cases,
> but the errcod is 1 !!
Yes, something didn't go right with the execution, which the 1 indicates, if
it had gone right it had returned 0.
You could try with the shell_exec() instead and see if the shell environment
will give some advantages over using exec().
//Aho
[Back to original message]
|