lo 🙂
I've got a bit of code writing some information to a new file...
It is an install script creating a simple file with just some information about the database, to be included later on along the line..
at the mo, this is what ive got to be written to the file...
$content = "$server = \"$svr\"; \n $dbuser = \"$dbusr\"; \n $dbpass = \"$dbpw\"; \n $dbname = \"$dbn\";";
This makes a file with the following:
= "localhost"
= "username"
= "password"
= "db"
how can i get it so it writes the var also..
so it would end up like
$server = "localhost"
dbuser = "tappy"
dbpass = "t9kjds6g4g"
dbname = "eforum"
i.e. how do i get it to ignore the vars..
like you ignore " 's with a \ infront of it..
Thanks in advance
Ben