Microsoft
Software
Hardware
Network
Question : PHP Notice: Undefined offset: 1
Hi to all,
Used the following command to monitor our servers
<?php
$cmd = shell_exec("ping 192.168.1.10 -c4" );
$data_time = explode("received, ",$cmd);
$data_ms = explode("% packet loss",$data_time[1]);
if ($data_ms[0]=='0' or $data_ms[0]=='50' or $data_ms[0]=='25') {$dc_staff="Up";} else $dc_staff="Down";
//echo $data_time[1]. "____";
?>
to excute the command:
http://10.5.2.22/gnokii-SM
S/ping-ser
vers.php
or
/wget -O - -q
http://10.5.2.22/gnokii-SM
S/ping-ser
vers.php
I get following error:
sh: ping: command not found
[Thu Jul 29 12:32:06 2010] [error] [client 10.5.2.22] PHP Notice: Undefined offset: 1 in /var/www/gnokii-SMS/ping-s
ervers.php
on line 5
any solution?
Answer : PHP Notice: Undefined offset: 1
the old message have the message header and mapi properties of the original mailbox and cannot be changed
Random Solutions
Data truncated MYSQL
DHCP and 255.0.0.0 subnet mask
iPad Camera Connection Kit does not display .jpg images on iPad
MySQL IFNULL() selection
install problems with Framework .net 3.5 in Windows Server 2008 SP2 x86
Readystate in IE in VBA program
Problems installing the AjaxControlTooKit.dll
what is the default directory to run jsp file from tomcat 5.5 and what directory for mysql_connector.jar file to be placed?
anyone familur ith using the swing classes HTMLEditorKit StyleSheet and reading a external CSS
100% CPU usage in vCenter but not in taskmanager on the Windows NT 4.0 VM that has been converted