Change constant, var value in php file
<p>I'm writing my own tiny deployment script and I need to change db login and password in db.php file when copying it to remote host. Is it possible to change variable/constant value without hand-made analyzing (preg_replace etc.) text of php file?</p>

<p>I know that PHP have <code>tokenizer</code>, but I have no clue how to use it.</p>

<p>Please help me with some samples.</p>

<p>Any help and suggestions are appreciated.</p>

<p>Thank you.</p>
