I currently have a list of defined constants and a function that regex'es every pulled MySQL row and searches for things like CLIENT_NAME, LOCAL_API_ADDRESS and automatically changes it.
// several fields define ('CLIENT_NAME', '...'); define ('LOCAL_API_ADDRESS', '...'); ...
The fact is that when my application gets bigger, I feel that it is quite inefficient and is related to line losses (forgetting about regex here or there).
How do you guys handle this?
source share