#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2013
    Posts
    2
    Rep Power
    0

    Angry Setting and Checking Variables


    I have a page where it shows a user's information. I want to know how to set a veriable in a file, then be able to check that variable by entering a username and it finding the variable associated with that name. How would I do this without a database?
  2. #2
  3. Transforming Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    14,143
    Rep Power
    9398
    Where is the user information, the stuff this page you have shows, kept if not in a database?
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2013
    Posts
    2
    Rep Power
    0
    Originally Posted by requinix
    Where is the user information, the stuff this page you have shows, kept if not in a database?
    I have it in a file named userlist.inc.php but I was wondering if I could save it to a different php page because the way the page saves is fairly strict[google]lol[/GOOGLE]
  6. #4
  7. Transforming Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    14,143
    Rep Power
    9398
    Somewhere in userlist.inc.php there must be the username. Search through the array or whatever you have in there until you find the right data.

    Speaking of, what do you have in that file? Big array? Multiple variables (God forbid)?
  8. #5
  9. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2012
    Posts
    165
    Rep Power
    18
    Please, please tell me this file is outside of your web directory. And why not use a database like the rest of the php world.

    But first just tell me that it isnt inside your web dirrectory!!

    Originally Posted by requinix
    Somewhere in userlist.inc.php there must be the username. Search through the array or whatever you have in there until you find the right data.

    Speaking of, what do you have in that file? Big array? Multiple variables (God forbid)?

IMN logo majestic logo threadwatch logo seochat tools logo