Jump to content

RShadow

New Members
  • Posts

    6
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

RShadow's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. RShadow

    p2p

    [quote author=thorpe link=topic=101605.msg402278#msg402278 date=1153704836] p2p is a client / server operation. Im still not sure what your question really is. In p2p, the actual files dont (usually) pass through a central server. Each user runs a client / server on there own machine. They then pass the files directly to each other. A central server is really only used for search purposes. [/quote] I hope you mean p2p is not a client / server operation.. p2p is a peer to peer model.. client server is a client and server model, they are very different.
  2. yep :D exactly what I was thinking.. and if its comming from a genious then it must be the most elegant way to accomplish it :D
  3. That's what I was figuring, so I knew it was impossible to make this design by a child parent relationship... what I'm going to have to do is create some sort of middle man or go between class that will manage the connection.  Proably what I'm going to do is create a class that physicaly enumate a certain directory on the server and look for "modules" and then if a global variable is set to use one of those modules it will (include) that module, otherwise include a default module... I was just hoping that perhaps there was a more elegant way to accomplish this.
  4. I undstand that, but I'm trying to do is never directly call test2_2, but have all my code call and use test2 and have test2 decide (based upon some set variable) which implementation to use (be it test2_2 or test2_3, etc).
  5. I need a little assistance in designing a few classes.. what I want to be able to do is create a class that will be used through out my code, but a different back end.  For example I would like to create say an interface class that defines a number of methods that classes will implement... but I don't wan't to use the implemented classes in my code.. I want to use the interface class, and have the interface class decide what implementation to use.. any ideas on how to accomplish this?
  6. I'm attempting to build a parser similar to bbcode style, and I'm not exactly sure how to approach this... all the methods I can think up in my head would require basicly a character by character analayis that would be .. well pretty complex.. I'm sure there is a better way in PHP. Doing something like smilies is realativly simple.. pretty much a simple search and replace.. however I'm not exactly sure how I would go about searching for a match pair such as [ some tag ] [ /some end tag ]
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.