Jump to content

Archived

This topic is now archived and is closed to further replies.

localhost

fwrite?

Recommended Posts

How would I make a form, that would write its contents to certain lines of a PHP file?

So for instance

Db name: textbox1
db user: textbox2
dbpass: textbox3

table prefix: textbox4

then the file config.php

$dbname = "
textbox1
";

$dbuser = "
textbox2
";

$dbpass = "
textbox3
";

$prefix = "
textbox4
";

then the select db, and mysql_connect
]

any ideas?

Share this post


Link to post
Share on other sites
You would need to put each line into an array element, then loop through and write the file.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.