dolibarr-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Dolibarr-dev] utilisation du buffer de sortie PHP/ module memcached


From: Laurent Destailleur (eldy)
Subject: Re: [Dolibarr-dev] utilisation du buffer de sortie PHP/ module memcached
Date: Tue, 06 Dec 2011 20:23:32 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:8.0) Gecko/20111124 Thunderbird/8.0

Le 06/12/2011 12:23, Florian HENRY a écrit :
Bonjour,

Dans le cadre du developpement d'un module en 3.1, lors de l'execution de hook, je souhaite modifier le HTML déjà générer pour le remplacer par le mien.

J'utilise ob_get_contents().

Cela fonctionne trés bien lors de mes tests. Seulement, je sais que sur Dolistore il y a le module MemCached, je ne sais pas comment il fonctionne exactement, mais cela peut-il avoir un impact sur la gestion du buffer de sortie PHP ?

Cordialement
Florian HENRY
------------------------------------------------------------------
Hello,

In a module devlopement for 3.1, during the execution of my hook, I would like to change the HTML previouly generated by my own.

I use ob_get_contents().

It work fine during my test but I see that the module MemCached in dolistore. I don't known how it really work. Could it have an impact on the output buffering PHP management ?
No, no effect can occurs.
Memcached is a cache to replace a disk read by a memory read provided by a server Memcached (fopen/fread is replaced by a socket open/read).
ob_get_contents plays on what is returned by PHP and not on what PHP do, so this should be compatible. However, you may exeprience problem if using the new output "FirePHP" provided with 3.2 into syslog module (just never enable this option).

Kind regards.

Florian HENRY


_______________________________________________
Dolibarr-dev mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/dolibarr-dev


-- 
Eldy (Laurent Destailleur).
---------------------------------------------------------------
EMail: address@hidden
Web: http://www.destailleur.fr

Dolibarr (Project leader): http://www.dolibarr.org
To make a donation for Dolibarr project via Paypal: address@hidden
AWStats (Author) : http://awstats.sourceforge.net
To make a donation for AWStats project via Paypal: address@hidden
AWBot (Author) : http://awbot.sourceforge.net
CVSChangeLogBuilder (Author) : http://cvschangelogb.sourceforge.net

reply via email to

[Prev in Thread] Current Thread [Next in Thread]