Maybe I'm dense, but this doesn't make any sense to me. The following code would appear to be equivalent to me:
<?php
if (isset($url) && isset($text)) {
echo("<a href=\"$url\">$text</a><br>");
}
?>
Note only that, but it will avoid problems relating to multiple users executing (and writing to the same file!) simultaneously. The only safe way to write files is to create tempfiles... but I don't see the need here!
Dave
===========================================
http://badblue.com
Small footprint P2P web server for Windows,
File-sharing, PHP, wireless apps & more