I have a script which I'm using for a CMS of minor news tidbits. It uses fputs to print into a text file. What I would like it to do is take all date strings or phrases (i.e.- xx/xx/xxxx, xx-xx-xxxx, etc) which are typed-out in the textbox and convert them to a predefined hyperlink.

Is this possible? I was thinking that some sort of fgets if statement might be used to retrieve the phrase from within news1.txt and somehow convert it to a hyperlink which would be derived from some variable...? Thanks for any help.

if ($action=="auth") {
$fp = fopen("news1.txt", "w");
fputs($fp, $f);