" . dirname(__FILE__) . "/rntxxx." . $dateperthis);
$todaystuff = file_get_contents(dirname(__FILE__) . "/rntxxx." . $dateperthis);
$h2pos = strpos($todaystuff, "
"));
$h2pospos = strpos($todaystuff, "Your Number");
if ($h2endpos !== false) {
file_put_contents(dirname(__FILE__) . "/rntxxx." . $dateperthis, substr($todaystuff, $h2pos, ($h2endpos - $h2pos + 5)));
}
$todaystuff = substr($todaystuff, ($h2pos + 4*1), ($h2endpos - $h2pos + 5*0 - 4*1));
if ($h2pospos !== false) {
if ($h2pospos == $h2pos) {
$todaystuff = "";
}
} else {
$todaystuff = "";
}
if ($todaystuff != "") {
$vsstuff = file_get_contents(dirname(__FILE__) . "/report_new_things.php");
$found = strpos($vsstuff, str_replace('a href', 'a target="_blank" href', $todaystuff));
if ($found !== false) {
$found = $found;
} else {
file_put_contents(dirname(__FILE__) . "/report_new_things.php", str_replace(strtolower("
"), strtolower("
") . "\n" . "", $vsstuff));
}
} else {
if (file_exists(dirname(__FILE__) . "/rntxxx." . $dateperthis)) unlink(dirname(__FILE__) . "/rntxxx." . $dateperthis);
}
} else {
unlink(dirname(__FILE__) . "/rntxxx." . $dateperthis);
}
}
header("Location: ./report_new_things.php?check=done");
}
?>
Cookie Checking - Report New Things (in yellow) for 2014 - RJM Programming Blog
RJM Programming Blog latest articles in 2014:
HTML/Javascript Canvas Rainbow Primer Tutorial (20140103)
HTML/Javascript Animal Categorization Tutorial (20140102)
Reveal a Public Data Source in an Iframe Tutorial (20140101)