localhost Posted July 24, 2006 Share Posted July 24, 2006 How would I make a form, that would write its contents to certain lines of a PHP file?So for instanceDb name: textbox1db user: textbox2dbpass: textbox3table prefix: textbox4then the file config.php$dbname = "textbox1";$dbuser = "textbox2";$dbpass = "textbox3";$prefix = "textbox4";then the select db, and mysql_connect]any ideas? Link to comment https://forums.phpfreaks.com/topic/15441-fwrite/ Share on other sites More sharing options...
trq Posted July 24, 2006 Share Posted July 24, 2006 You would need to put each line into an array element, then loop through and write the file. Link to comment https://forums.phpfreaks.com/topic/15441-fwrite/#findComment-62603 Share on other sites More sharing options...
localhost Posted July 24, 2006 Author Share Posted July 24, 2006 a tutorial or anything? Link to comment https://forums.phpfreaks.com/topic/15441-fwrite/#findComment-62647 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.