-
well I wnat to make variables then make anohter page where the registered person could edit the txt file but not mess with any php parts, so that it has variables in it for most php areas so they cna just edit a certain part of a script, if there are any easier ways can you help me?
-
You know I'm still not following you on this part, but if what I think is right you want something like this:
main.txt
PHP Code:
<?php
$var1 = "Variable 1";
$var2 = "Variable 2";
$username = "The user";
//any other variables the users want to add
?>
test.php
PHP Code:
<?php
require('main.txt');
echo $var1.'<BR>'.$var2.'<BR>'.$username;
//displays all of the variables in main.txt
?>
If it's not what you are talking about, maybe you could "Paint A Picture" for me (explain it a little more). Let me know.
-
nvm i will test it... i just wrote it and the internet messed up so i lost it all and i dont wanna rewrite it for you so i will do my own testing