note 89476 deleted from function.fwrite by danbrown

From: 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);

« previous php.notes (#151691) next »