Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 8th, 2012  |  syntax: None  |  size: 0.26 KB  |  hits: 9  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. PHP shell_exec with parameters is not working
  2. <?php
  3. shell_exec("php -f /home/nikesh/public_html/createtestfile.php 666 >/dev/null &");
  4. ?>
  5.        
  6. <?php
  7. phpinfo();
  8. ?>
  9.        
  10. <?php
  11. shell_exec("php -f /home/nikesh/public_html/createtestfile.php 666 >/dev/null 2>&1");
  12. ?>