Magicode.org - where experts come together.
If you provide any kind of content on the web, you're exposing your intellectual property to theft. This is something we have to accept in trade for the freedom we have to publish anything and have it seen by anybody. But a simple setup in the way you publish your text can make it clear who the text belongs to.
A variable is a means of storing a value, such as a text string or a number. In PHP you do not have to declare your variable, as it's automatically declared when you set it. Since you do not need to declare the variable, you do not have to specify what kind of data it contains either.
If you have a web site or blog, it's important to spread the word, and what's better than a properly designed and updated RSS feed? Here's how to write a PHP script that fetches the last 10 items from your database and writes it to a RSS-file.