$row_array = [];
if ( ibase_connect( $db_filespec,$db_user,$db_pass_word) )
{
$r=fopen('select.sql','r');
while(!feof($r))
{
$str = trim(fgets($r));
if(empty($str)) continue;
$result = ibase_query($str);
$row_array = array_merge($row_array, ibase_fetch_row($result));
}
print_r($row_array);
fclose($r);
ibase_commit(); // note parenthesis but no parameters.
ibase_close(); // note total lack of parenthesis and parameters !
}
?>
ping -c 1 -w 200 192.168.1.1
PING 1 192.168.1.1 ( 192.168.1.1) 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=1 ttl=57 time=3.51 ms
--- 192.168.1.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 3ms
rtt min/avg/max/mdev = 3.517/3.517/3.517/0.000 ms
$output = shell_exec("ping $ip -n 1");
$output = shell_exec("ping -c 1 -w 200 $ip");
Огромное спасибо, разобрался!
$row_array = array();
while(!feof($r))