terryds Posted August 13, 2013 Share Posted August 13, 2013 Can you tell me Which is better between reading xml from a string or external file? Is it unsecure if i store database password to an external xml file? Is it slow to read xml from a string ? Link to comment Share on other sites More sharing options...
justsomeguy Posted August 13, 2013 Share Posted August 13, 2013 Can you tell me Which is better between reading xml from a string or external file? Neither is really "better", I guess it depends what your goal is. Is it unsecure if i store database password to an external xml file? If the password is encrypted and the file is not publicly accessible then it should be fine. Is it slow to read xml from a string ? Slow compared to what? If you need to access the file to read the data into a variable then you're still accessing the filesystem. Link to comment Share on other sites More sharing options...
terryds Posted August 14, 2013 Author Share Posted August 14, 2013 How to make the file not publicly published? Link to comment Share on other sites More sharing options...
birbal Posted August 14, 2013 Share Posted August 14, 2013 keeping the files out of web root will be safest. Also you can use .htaccess to restrict access to files Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now