| systemcall1.php | systemcall2.php |
In the php script here, we've called the directory listing command of the operating system.
This page shows how to pull the output from this server-side command into a variable in the same php script.
You will probably want to parse this output in some way now that you've got it in a variable. Most likely you will do this using regular expressions in php. Here we have done simple parsing of data into an array.