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

Untitled

By: a guest on Jul 20th, 2012  |  syntax: None  |  size: 0.47 KB  |  hits: 15  |  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. Getting Deprecated: Call-time pass-by-reference has been deprecated when calling exec() Function
  2. <?php
  3.     $output = array();
  4.     exec("ping google.com", &$output);
  5.     foreach ($output as $key => $value) {
  6.         echo $value . "<br/>";
  7.     }
  8. ?>
  9.        
  10. Call-time pass-by-reference has been deprecated in C:xampphtdocsmy_testajax_loop.php on line 3.
  11.        
  12. string exec ( string $command [, array &$output [, int &$return_var ]] ) .
  13.        
  14. ...
  15. exec("ping google.com", $output);
  16. ...