You can use Javascript in combination with PHP to do this, but it will only work in IE. This javascript from http://members.aol.com/grassblad/html/addFav.html goes between the <head></head> tags of your document:
function bookIt(argVal)
{
var bookData = new Array();
bookData = argVal.split("|");
if (document.all)
window.external.AddFavorite(bookData[0], bookData[1]);
else
alert("Sorry. Netscape users must bookmark the pages manually by hitting <Ctrl-D>");
}
You'll also want to set a variable containing the name of the page:
<?
$page_name = "My Page";
?>
In the body of the document, you'll need to add a button:
<input type='button' value='Add To Favorites' onClick = "bookIt('<? echo $PHP_SELF . '|' . $page_name; ?>');">
The pipe in the middle of the PHP code is necessary for javascript to split the argument into the URL and page name.
That should do it, though I haven't tested it. Let me know if it works for you.