clivehenderson
IS-IT--Management
Hi Hope somrone can help with this
I'm trying to create a file from php.
It needs to contain this line
$dbname= "web39-databasename";
$conFile = "dbconn.php";
$fh = fopen($conFile, 'w') or die("can't open file");
$stringData = "\$dbname= ";
fwrite($fh, $stringData);
So I'd like $stringData to contain quotes name quotes
I've tried \"and "" without success
Any guidance at all might save me some hair
Many thanks
Clive
I'm trying to create a file from php.
It needs to contain this line
$dbname= "web39-databasename";
$conFile = "dbconn.php";
$fh = fopen($conFile, 'w') or die("can't open file");
$stringData = "\$dbname= ";
fwrite($fh, $stringData);
So I'd like $stringData to contain quotes name quotes
I've tried \"and "" without success
Any guidance at all might save me some hair
Many thanks
Clive