PHP Smart Config File


/ Published in: PHP
Save to your folder(s)

Here's a little trick I started using when working with XAMPP for localhost and keeping things in tune with the live configuration variables such as username and passwords to mysql (or whatever you're writing for).

The example below figures your working on http://website.com and that your local development server uses no password for the database.

URL: http://www.mediaextra.net/2010/workflow/tips-on-local-development/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.