ShoeLace1291 Posted June 15, 2007 Share Posted June 15, 2007 How do I put php in the fwrite function? For example: $database = $_POST['database']; $config = <?php $database = "$database"; ?>; I want the $database in bold to be $_POST['database']; Quote Link to comment https://forums.phpfreaks.com/topic/55683-php-in-fwrite/ Share on other sites More sharing options...
trq Posted June 15, 2007 Share Posted June 15, 2007 <?php $database = $_POST['database']; $config = "<?php\n\$database = \"$database\";\n?>"; ?> Quote Link to comment https://forums.phpfreaks.com/topic/55683-php-in-fwrite/#findComment-275130 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.