title: Execute "less" from command-line PHP w/ Scrolling
body: <p>I want to execute <code>less</code> and similar programs from the command-line in PHP.</p>
  
  <p>I have tried the usual suspects (exec, shell_exec, passthru, etc), and while many of them can dump the file to the screen, the process is terminated before I can make use of it. If I wanted <code>cat</code>, I'd use it.</p>
  
  <p>How do I execute a program in this fashion?</p>