Jump to content

Read xml from string vs read xml from external file


terryds

Recommended Posts

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...