Saturday, January 23, 2010

Question regarding database.php

When configuring database.php, is it possible to assign elements from
the $_SERVER array (which I have set up to include login, password and
database name values) to corresponding elements of the $default or
$test arrays?

If so, could someone please describe the syntax or other requirements
for doing this properly.

I have experimented with many different specifications, some of which
work without giving syntax errors, but none so far have allowed me to
connect to a database, whereas just including the actual strings works
fine.

Is doing something like this considered good database security
practice in the CakePHP world, or are there other preferred ways of
protecting database access information? As may be obvious, I'm very
new to this environment.

Thanks in advance.

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

No comments: