How to create XML documents from scratch with PHP

PHP has some different tools for dealing with XML files. In this post we will see how to create a new XML document from scratch using three different PHP extensions: SimpleXML, XMLWriter and DOM. Which one is best for you?

User authentication with PHP: an example class

Do you need to get started with user authentication in PHP? Keep reading to learn how to implement a simple but fully functional PHP class for managing user authentication. You will see how to authenticate users with username and password and with cookies, and how to properly store passwords on the database.