function WriteToFile($URL, $Des){
/*functions writeToFile*/
$TheFile = "data.txt";
$Open = fopen ($TheFile, "a");
if ($Open) {
fwrite ($Open, "$URL\t$Des\n");
fclose($Open);
$Worked = TRUE;
} else {
$Worked = FALSE;
}
return $Worked;
}//End
?>
using files
\\2\\3";
$Array["URL"] = eregi_replace($Pattern, $Replace, $Array["URL"]);
$CallFunction = WriteToFile ($Array["URL"], $Array["Des"]);
if ($CallFunction){
print ("Your submission--$Array[URL]--has been received!
\n");
} else {
print ("Your submission was not processed due to a system error!
\n");
}
} else {
print ("Please enter a valid Web address!\n");
}
?>