I have the following php command:
- $shellOutput = shell_exec('net use');
I receive the following output:
Status Local Remote Network
OK S: \\srv\dataS Microsoft Windows Network
When I run net use in a cmd window I receive the following output
Status Local Remote Network
OK L: \\srv\dataL Microsoft Windows Network
OK M: \\srv\dataM Microsoft Windows Network
OK P: \\srv\dataP Microsoft Windows Network
OK R: \\srv\dataR Microsoft Windows Network
OK S: \\srv\dataS Microsoft Windows Network
Should all the mapped network drives display or does PHP limit the number of drives returned?
If the command supposed to return more than 1 network drive, please provide short example on who to get more than one row to return.
TIA
After performing the var_dump, the value returned was
Status Local Remote Network
OK S: \\srv\dataS Microsoft Windows Network