title: How can I use exec in PHP with Symfony
body: <p>I do not think I want to use <code>exec</code> or <code>shell_exec</code> but I need to run command in Linux from PHP script. I use Symfony framework in the project.</p>
  
  <p>I must get listing of directories using <code>ls -la</code>.</p>