I need to use xml as database in php. Till now i used mssql,mysql as database in php. Is it possible to do so?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Of course it is, it depends how you want it laid out though.
Although, XML isn’t technically a database.
If you were using a system that requires the use of user registration, you could have either an XML file per user, or an overall user XML file.
1 – User1.xml
2 – Users.xml
These are some very simple methods that could be used.
Then in order to check if a user has logged in you would need to iterate through the nodes in the XML file(s) and check the details.