Jump to content

preg_match error


DataSpy

Recommended Posts

This is my first time using preg_match and I'm a little confuesed :(  I'm trying to match an array against zero but I keep getting the error: Warning: preg_match() [function.preg-match]: Delimiter must not be alphanumeric or backslash in

 

$IP = implode('.',$Start);
$Command = shell_exec("ping -c 1 -w 1 $IP");
$data = explode(',',$Command);
$data = $data[1];

if(preg_match("0", '$data'))
{
echo "$IP online <br />";
}

 

any help would be greatly apprenticed, thanks in advance!!!

Link to comment
https://forums.phpfreaks.com/topic/259244-preg_match-error/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.