Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 22

Thread: PHP Q

  1. #11
    Join Date
    Dec 2007
    Posts
    2,807
    Tokens
    0

    Latest Awards:

    Default

    Unfortuantly I'm not using MySQL but its a nice idea and I think ill do a variation on that

  2. #12
    Join Date
    Sep 2008
    Location
    UK
    Posts
    3,670
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by FlyDuo View Post
    Unfortuantly I'm not using MySQL but its a nice idea and I think ill do a variation on that
    What are you using? Flat files?
    Back for a while.

  3. #13
    Join Date
    Dec 2006
    Location
    Swindon
    Posts
    3,299
    Tokens
    215
    Habbo
    dunko

    Latest Awards:

    Default

    Quote Originally Posted by Excellent2 View Post
    What are you using? Flat files?
    Or MSSql, Firebird, or that thing cpanel supports that no one ever uses.

  4. #14
    Join Date
    Apr 2009
    Location
    United Kingdom
    Posts
    1,111
    Tokens
    100

    Latest Awards:

    Default

    Quote Originally Posted by Blob View Post
    Or MSSql, Firebird, or that thing cpanel supports that no one ever uses.
    You thinking PostgreSQL or w/e ? I never touched that.

  5. #15
    Join Date
    Dec 2007
    Posts
    2,807
    Tokens
    0

    Latest Awards:

    Default

    XML files well...Plists, which are essentially XML files.

  6. #16
    Join Date
    Mar 2008
    Location
    Swindon, UK
    Posts
    1,274
    Tokens
    187
    Habbo
    :Ltd

    Latest Awards:

    Default

    ./online/username.txt

    inside file, timestamp of last refresh basically

    to check, open username.txt, check against time() with the timestamp recorded, and wala. You have jewbears thingy, its easy... really.
    Hi, names James. I am a web developer.

  7. #17
    Join Date
    Mar 2008
    Posts
    5,108
    Tokens
    3,780

    Latest Awards:

    Default

    Quote Originally Posted by FlyDuo View Post
    XML files well...Plists, which are essentially XML files.
    I've always wondered why you are doing that, flat files.. and not via database.. why?

  8. #18
    Join Date
    Dec 2007
    Posts
    2,807
    Tokens
    0

    Latest Awards:

    Default

    Ok, I'm really confused.

    So I have all of these files in www.URL.com/<yourusername>/<yourusername>.plist

    If <yourusername>.plist hasn't been updated in 12 seconds then I want to POST <yourusername> to removeUser.php. How would I go about doing this?

    There are many users that I'd have to do it for so I'm not sure how to do it in cron jobs.

  9. #19
    Join Date
    May 2005
    Location
    San Francisco, CA
    Posts
    7,160
    Tokens
    2,331

    Latest Awards:

    Default

    Quote Originally Posted by FlyDuo View Post
    Ok, I'm really confused.

    So I have all of these files in www.URL.com/<yourusername>/<yourusername>.plist

    If <yourusername>.plist hasn't been updated in 12 seconds then I want to POST <yourusername> to removeUser.php. How would I go about doing this?

    There are many users that I'd have to do it for so I'm not sure how to do it in cron jobs.
    Why are you using plists? Why not use something like MySQL? It'd make the solution a lot easier...

  10. #20
    Join Date
    Mar 2008
    Posts
    5,108
    Tokens
    3,780

    Latest Awards:

    Default

    I'm wondering the same thing.. it's just going to be a lot of lag time and overhead if many users start to use it.

    You can setup "virtual" plist files, and return the database results in XML format, if you're so dedicated to using XML, but still having the functionality, speed, and versatility of a database behind it..

    I think that'd be a whole lot better solution.

Page 2 of 3 FirstFirst 123 LastLast

Posting Permissions

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