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
[email protected]
https://lists.nongnu.org/mailman/listinfo/dolibarr-dev
--
Eldy (Laurent Destailleur).
---------------------------------------------------------------
EMail: [email protected]
Web: http://www.destailleur.fr
Dolibarr (Project leader): http://www.dolibarr.org
To make a donation for Dolibarr project via Paypal: [email protected]
AWStats (Author) : http://awstats.sourceforge.net
To make a donation for AWStats project via Paypal: [email protected]
AWBot (Author) : http://awbot.sourceforge.net
CVSChangeLogBuilder (Author) : http://cvschangelogb.sourceforge.net
_______________________________________________
Dolibarr-dev mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/dolibarr-dev