
Untitled
By: a guest on
Jul 20th, 2012 | syntax:
None | size: 0.47 KB | hits: 15 | expires: Never
Getting Deprecated: Call-time pass-by-reference has been deprecated when calling exec() Function
<?php
$output = array();
exec("ping google.com", &$output);
foreach ($output as $key => $value) {
echo $value . "<br/>";
}
?>
Call-time pass-by-reference has been deprecated in C:xampphtdocsmy_testajax_loop.php on line 3.
string exec ( string $command [, array &$output [, int &$return_var ]] ) .
...
exec("ping google.com", $output);
...