dniwebdesign
10-23-2004, 09:51 AM
I've never did this before so I would really like some help. I have a file named
db.inc.php which holds the following code:
<?php
$dbusername = '';
$dbpasswd = '';
$dbhost = '';
$database_name = '';
$database_prefix = '';
?>
I would like to know what code I would need to take info from a form and re-write the file so the code in it looks like:
<?php
$dbusername = 'xxxxx';
$dbpasswd = 'xxxxx';
$dbhost = 'localhost';
$database_name = 'xxxxx';
$database_prefix = 'xxxxx';
?>
In other words it would be kind of like a install script. Thanks.
db.inc.php which holds the following code:
<?php
$dbusername = '';
$dbpasswd = '';
$dbhost = '';
$database_name = '';
$database_prefix = '';
?>
I would like to know what code I would need to take info from a form and re-write the file so the code in it looks like:
<?php
$dbusername = 'xxxxx';
$dbpasswd = 'xxxxx';
$dbhost = 'localhost';
$database_name = 'xxxxx';
$database_prefix = 'xxxxx';
?>
In other words it would be kind of like a install script. Thanks.