...

View Full Version : Writing to a file



Darren06
06-07-2004, 10:55 PM
I want to make an installer script that writes the variables to this...



<?php
//MYSQL host
$mysqlhost="";
//MYSQL user
$mysqluser="";
//MYSQL password
$mysqlpass="";
//MYSQL database
$mysqldatabase="";
//Short file directory
$filefolder="";
//Full path to the file directory
$filedirectory="";
?>


Anyone know how I could do this?

Darren06
06-08-2004, 04:26 AM
Bump :d

carl_mcdade
06-08-2004, 07:12 AM
This threads code should get you going:

http://www.codingforums.com/showthread.php?t=39329

You just have to change your file to look like:


<?php
$mysqlhost=""; /*MYSQL host */

$mysqluser=""; /*MYSQL user */

$mysqlpass=""; /*MYSQL password*/

$mysqldatabase=""; /*MYSQL database */

$filefolder=""; /*Short file directory*/

$filedirectory=""; /*Full path to the file directory*/
?>

Doing this will make it easier to do a split and load the contents into a form.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum