in reply to Re^2: Changing parameters
in thread Changing parameters

You could just append new values to the file.
echo '$i = 987;' >> parameter.ph
That will override the old values.

If you do this often, and do not want the file to grow every time, save the original file and output to a new one.

cp defaults.ph parameter.ph; echo '$i = 987;' >> parameter.ph