512*1024) die("that's a lot of data, and most likely more than one packet of data. Go use this on your own web server or something..."); $datastr = explode("\n",$textdt); $lines = count($datastr); for ($j=0;$j<$lines;$j++) { $str = $datastr[$j]; if (!(strpos($str,":")===false)) continue; //seperate lines to easify adding and removing stuff $spacepos = strpos($str, ' '); //notice that the number-time and time-data spaces are tabs $str=substr($str, $spacepos); //so this already filters out the data. $str=trim($str); $hexnums=explode(" ", $str); for ($l=0;$ltoData". "Only paste the lines with data, not any other sniff information (you can paste the lines with indices) ". "in them too, they get ignored by detecting the `:') The data gets detected by the tabs used, so don't ". "do any reformatting before posting it here.
Some browsers may have a problem with posting ". "a lot of data. If in linux, use lynx, links or w3m, they should be more efficient.

". "You'll get back binary data - just do a save as.

". "
". "
". "". "
". ""; } /* code cut out for input/output to file: (yup, you have to digure out where it came from) // the following is for a file ************* $fd = fopen("getdata.text","r"); if (!$fd) die("couldn't open file"); while (true) { $str = fgets($fd,200); if (!$str) break; //the data if (!(strpos($str,":")===false)) continue; //seperate lines to easify adding and removing stuff $spacepos = strpos($str, ' '); //notice that the number-time and time-data spaces are tabs $str=substr($str, $spacepos); //so this already filters out the data. $str=trim($str); //store in array $datastr[$i]=$str; $i++; } fclose($fd); $lines = $i; //for clarity //and this is for writing to a file. $fd2 = fopen("outfile.jpeg","w"); if (!$fd2) die ("couldn't open `outfile.jpeg' for writing"); fwrite($fd2, chr(0+("0x".$hexnums[$l]))); fclose($fd2); */ ?>