Insert information into file
Posted: Sat Apr 10, 2004 11:17 pm
I'd like to have two fields from a forum be entered into a text document (acually a php page) in certain places in the document.
Here's where I want the info to go:
I'd like it to enter a
line every time a user adds an account via another page. It should always go above "<? } //End ?>", and "username" should be replaced by the username field of the document.
It should also add a
line above this line:
Any help you could give me would be greatly appreciated!
Here's where I want the info to go:
Code: Select all
<CENTER>
<?
include("layout.php");
function add_page_content() {
// Grab info...
$will = file_get_contents("/home/will/.plan");
$charlie = file_get_contents("/home/charlie/.plan");
$HoboGod = file_get_contents("/home/HoboGod/.plan");
$pyr0t3ch = file_get_contents("/home/pyr0t3ch/.plan");
$KalzzMod = file_get_contents("/home/KalzzMod/.plan");
$Striker = file_get_contents("/home/Striker/.plan");
$as2100 = file_get_contents("/home/as2100/.plan");
$Cool_Fire = file_get_contents("/home/Cool_Fire/.plan");
$Ziplock = file_get_contents("/home/Ziplock/.plan");
$mickiscoole = file_get_contents("/home/mickiscoole/.plan");
$hellstorm = file_get_contents("/home/hellstorm/.plan");
$chronos = file_get_contents("/home/chronos/.plan");
$DemonCat = file_get_contents("/home/DemonCat/.plan");
?>
<a href="~will">Jester:</a><?
echo("<br/>".$will."<br/><br><br>");
?>
<a href="~charlie">charlie:</a><?
echo("<br/>".$charlie."<br/><br><br>");
?>
<a href="~pyr0t3ch">pyr0t3ch:</a><?
echo("<br/>".$pyr0t3ch."<br/><br><br>");
?>
<a href="~HoboGod">HoboGod:</a><?
echo("<br/>".$HoboGod."<br/><br><br>");
?>
<a href="~KalzzMod">KalzzMod:</a><?
echo("<br/>".$KalzzMod."<br/><br><br>");
?>
<a href="~striker">Striker:</a><?
echo("<br/>".$Striker."<br/><br><br>");
?>
<a href="~as2100">as2100:</a><?
echo("<br/>".$as2100."<br/><br><br>");
?>
<a href="~chronos">chronos:</a><?
echo("<br/>".$chronos."<br/><br><br>");
?>
<a href="~Cool_Fire">Cool_Fire:</a><?
echo("<br/>".$Cool_Fire."<br/><br><br>");
?>
<a href="~Ziplock">Ziplock:</a><?
echo("<br/>".$Ziplock."<br/><br><br>");
?>
<a href="~mickiscoole">mickiscoole:</a><?
echo("<br/>".$mickiscoole."<br/><br><br>");
?>
<a href="~hellstorm">hellstorm:</a><?
echo("<br/>".$hellstorm."<br/><br><br>");
?>
<a href="~DemonCat">DemonCat:</a><?
echo("<br/>".$DemonCat."<br/><br><br>");
?>
<? } //End ?>Code: Select all
<a href="~username">username:</a><?
echo("<br/>".$username."<br/><br><br>");
?>It should also add a
Code: Select all
$username = file_get_contents("/home/username/.plan");Code: Select all
<a href="~will">Jester:</a><?
echo("<br/>".$will."<br/><br><br>");
?>