Results 1 to 7 of 7

Thread: Check an External File To See...

  1. #1
    Join Date
    Jan 2007
    Location
    The stage
    Posts
    568
    Thanks
    23
    Thanked 6 Times in 6 Posts

    Question Check an External File To See...

    Ok, I am wondering if (without a server) you can make a button, that uses the input field above it, searches an external file, and then comes back with an answer of yes or no.

    Basicly
    I want this button to check to see if the person's desired username isn't there. If it is, it could have a side message saying...Congrats! If its not...Sorry...

    Thanks for uh, reading this I guess.
    DOUBLE THANKS, for helping.
    TRIPPLE THANKS for helping me make it!

    Oh, if your gonna make it...
    Here are some basic specs...
    Bgcolor of the flash should be white or FFFFFF or 255 255 255.
    If you want to use my button image... message me. And i'll lead you to the download section.
    Text Color (of the button) is like white (if u use my button image)
    BUT MESSAGE ME FIRST if your gonna make it!!! srry,

    THANKS THANKS THANKS

  2. #2
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,486
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    I am guessing that by "without a server" you mean like an SQL database, right?

    Using flat files this is possible, and I will work on some examples of how to go about it as my free time allows. It isn't a simple process, but doable.
    {CWoT - Riddle } {OSTU - Psycho} {Invasion - Team}
    Follow Me on Twitter: @Negative_Chaos
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

  3. #3
    Join Date
    Jan 2007
    Location
    The stage
    Posts
    568
    Thanks
    23
    Thanked 6 Times in 6 Posts

    Default Wait wats a SQL Database? Wat that do??

    Thanks Blizzard for volunteering to working on some examples for me! Really. I'd really (times 1,323,943,294,414,934,134,958,234,234.999(repeating)) appreciate it

    And wats a SQL Database? is that like PHP without a server

    IF it is i will Jump for joy, seriously

    The file its checking is an xml file. It can also be a txt file (which would make my job so much easier).

  4. #4
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,486
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    SQL..MySQL, I just shorten it. It's a database that is used to save information, blah blah blah.

    http://en.wikipedia.org/wiki/MySQL <~~ The wiki for further reading
    {CWoT - Riddle } {OSTU - Psycho} {Invasion - Team}
    Follow Me on Twitter: @Negative_Chaos
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

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

    Default

    Or...

    MS SQL
    http://en.wikipedia.org/wiki/MSSQL

    SQLite
    http://en.wikipedia.org/wiki/Sqlite

    (Sorry Blizz, had to expand on this )
    "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

  6. #6
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,486
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    No worries. Information is good
    {CWoT - Riddle } {OSTU - Psycho} {Invasion - Team}
    Follow Me on Twitter: @Negative_Chaos
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

  7. #7
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,486
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    Now, this example isn't perfect by any means. It is CaSe SeNSitIvE, and doesnt care if words(names) are partial or complete..

    Meaning "Rockonmetal" is in the "database" (txtfile) but an input of "Rockon" will return an "already being used" message.

    Anyway, it should give you some idea. Of course you realize this isn't a safe method of doing this, but either way.

    Hope it helps
    {CWoT - Riddle } {OSTU - Psycho} {Invasion - Team}
    Follow Me on Twitter: @Negative_Chaos
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

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
  •