Page 3 of 3 FirstFirst 123
Results 21 to 23 of 23

Thread: On register create new directory and copy files

  1. #21
    Join Date
    Oct 2006
    Posts
    183
    Thanks
    0
    Thanked 11 Times in 11 Posts

    Default

    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?

  2. #22
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    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.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

  3. #23
    Join Date
    Oct 2006
    Posts
    183
    Thanks
    0
    Thanked 11 Times in 11 Posts

    Default

    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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •