Jump to content

AbydosGater

Members
  • Posts

    435
  • Joined

  • Last visited

    Never

About AbydosGater

  • Birthday 03/19/1992

Contact Methods

Profile Information

  • Gender
    Male
  • Location
    Always at computer!

AbydosGater's Achievements

Advanced Member

Advanced Member (4/5)

0

Reputation

  1. This worked perfectly. I do not mind having to use the full namespace path as long as the namespace works Thank you very much salathe for such a quick reply. Andy
  2. I have a list of classes in a database that I wish to load and instanciate. I know this can be done with something along the lines of: $class = $row['name']; $instance = new $class; Ive tried the above syntax which works fine, but I am doing this with __autoload() and namespaces, so I tried the following syntax: use Plugin as foo\bar\Plugins; $class = $row['name']; $instance = new Plugin\$class; But this just throws an unexpected T_VARIABLE error. Can anyone help me out with creating new instance of a class from a string with namespaces? Thanks, Andy
  3. Hi, I guess this post is more Application Design, but the question itself regards to AJAX Design Techniques so I posted it here. I am in the initial planning stages for a community based website that I plan on developing with GWT and a PHP Backend. I was wondering if anyone could offer some architectural advice? The application will have several activities that the user can switch between, such as forums/topics or viewing/posting blogs.. ect. There will also be static modules on the page that will require to listen for updates from the server. Such as a shoutbox and a users online list. I am leaning towards using long polling, seems like a good idea. Send a request to a PHP script and POST a list of activities the user is doing such as viewing a forum, and then when something on that forum updates the PHP can return with the update. The only problem with this is what if the user changes activities after the request is made. I.E: Client sends a request to be updated about a certain forum, but then starts browsing another. I can come up with two ways around this.. 1) When the user changes activity.. kill the request and start a new one. 2) Have two requests. One long polling request waiting for updates, not sending what the user is doing. When the user changes activity, a second request to another PHP script updates the users SESSION to what they are doing, then when the long polling request gets the update in session it checks for those updates instead. Both have their advantages and disadvantages. The first one only ties up one of the 2 connection limit imposed by most browsers, but had a lot of extra network overhead with killing/resending requests. The second one involves using up both of the 2 connections from time to time. Although the second connection would not last, just update the session info. Has anyone encountered such a design problem? Could someone offer someadvice on how I should tackle this? Thanks for your time in reading. Andy (Update, just stumbled upon some more information, the 2 connection limit defined in the RFC 2068 has pretty much been ignored by some browsers such as IE and FF. So shouldnt be an issue)
  4. I would like to suggest www.apthost.com, Been with them for years. NEVER Had any downtime. Always great support.. all the features you could want. At an affordable price. Andy
×
×
  • 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.