View Full Version : Writing to a file

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

//MYSQL host
//MYSQL user
//MYSQL password
//MYSQL database
//Short file directory
//Full path to the file directory

Anyone know how I could do this?

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

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


You just have to change your file to look like:

$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