Quantcast
Channel: [development] Add data to Drupal session
Browsing latest articles
Browse All 9 View Live

[development] Add data to Drupal session

Hi, I'm new to this mailing list, I hope is the right place to ask for such questions. I'm writing a module for drupal which implements a jabber client and hooks in the appbar module. The issue i'm...

View Article



[development] Add data to Drupal session

Short answer: you can't. Even if you are able to serialize your class, I'm sure the class contains resources (http://www.php.net/manual/en/language.types.resource.php) and these cannot be serialized...

View Article

[development] Add data to Drupal session

I do not have experience with PHP extensions writing but i do with C so probably i'll consider this option if it's the best one to follow. I guess here you're talking about PHP daemon process used for...

View Article

[development] Add data to Drupal session

I'm thinking now that i can modify the jabber class itself to act as a daemon and allow socket communication. Salvatore -- Salvatore De Paolis

View Article

[development] Add data to Drupal session

That's not entirely true. In PHP, you can store an object of a class into the session (or any other serialized data structure) IFF the class is defined when the data is unserialized OR it can be...

View Article


[development] Add data to Drupal session

Correct. But the main thing an XMPP class does is maintaining a connection (which is a resource) to the XMPP server. And If I understood the thread starter correctly, the idea is to avoid the...

View Article

[development] Add data to Drupal session

I think that best solution in this case, is to have a background process in charge of managing XMPP related jobs, avoiding to create for each request a new XMPP environment. Ex: Request ---> Drupal...

View Article

[development] Add data to Drupal session

A nice article on PHP Daemon implementation: http://www.bbgamedev.net/index.php/writing-a-daemon-in-php/ -- Paolo Mainardi CTO Twinbit Blog: http://www.paolomainardi.com -- Please consider the...

View Article


[development] Add data to Drupal session

See also http://drupal.org/project/daemon It would be great to see some joint community effort in this area, because there are quite a lot of modules and applications that could benefit from a shared...

View Article

Browsing latest articles
Browse All 9 View Live




Latest Images