note 89476 deleted from function.fwrite by danbrown
| From: | danbrown@php.net | Date: | Tue, 10 Mar 2009 14:15:35 +0000 |
| Subject: | note 89476 deleted from function.fwrite by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-151691@lists.php.net to get a copy of this message | ||
Note Submitter: Big-Dog
----
Iâve tried to fallow all these post to create a fwrite but doesnât seem to deal
specifically with what Iâm looking for. I need to add paths to this as you can see.
How would a person do it
fwrite($fp, "<?php);
fwrite($fp, "t$dbServer="$dbServer\";\n");
fwrite($fp, "\t\$dbUsername=\"$dbUsername\";\n");
fwrite($fp, "\t\$dbPassword=\"$dbPassword\";\n");
fwrite($fp, "\t\$dbDatabase=\"$dbDatabase\";\n");
fwrite($fp, "\t\$changepassword =\"security/chgpwd.php\";\n");
fwrite($fp, "\t\$login = \"http://" .
$_SERVER['HTTP_HOST'] . "/security/login.php\";\n");
fwrite($fp, "\t\$logout = \"http://" .
$_SERVER['HTTP_HOST'] . "/security/logout.php\";\n");
fwrite($fp, "?>");
fclose($fp);