Guid tag in rss

I created a script to foreach an array and show it in rss format as news feed.
For guid tag, how should I assign a url to each news and how i should generate a link for each news?
If my script is licated at then how to create a link for each news for guid tag?