php-general Digest 19 Mar 2011 22:25:53 -0000 Issue 7234
Topics (messages 311972 through 311974):
Re: PHP session replication
311972 by: Florin Jurcovici
Re: Acentos en tpl
311973 by: Daniel Brown
problem compiling 5.3 with postgresql
311974 by: Jim White
Administrivia:
To subscribe to the digest, e-mail:
[email protected]
To unsubscribe from the digest, e-mail:
[email protected]
To post to the list, e-mail:
[email protected]
----------------------------------------------------------------------
--- Begin Message ---
Hi.
Just for comparison:
PHP does not provide sessions in the same way a servlet-based platform
provides. PHP actually destroys the in-mem representation of sessions
after each request is served, whereas a servlet-based platform caches
the sessions in mem between requests.
ASP.Net also serializes session state, but not into a cookie - it uses
a hidden field instead. Which works around cookie size limitation. You
don't even have a choice of database sessions with ASP.Net. OTOH, even
if performance might suffer, scalability, as far as the sessions
mechanism is concerned, is excellent - you don't need session
replication.
Servlet-based platforms provide the most complicated solution, when
compared to the other two. They keep sessions in mem, which improves
performance (no serialization/deserialization for each request), but
creates potential scalability problems. You won't hit the wall at a
few thousands of users, but replicating maybe a million sessions among
no more than a hundred servers causes the replication process to
consume quite a lot of resources, the resources being used for
replication increasing faster than linearly with each added server
(not quite exponentially, though). You can use sticky sessions with
most servlet-based platforms, but these come with their own problems
(already described by a previous poster). Nevertheless, in mem
sessions a la servlets are a very convenient mechanism to use - the
session replication is provided by the platform, and the app
programmer doesn't have to worry about it.
All three approaches rely on every piece of data in the session being
serializable, so you can't store interesting objects, like an open
file or the like, in sessions.
Does anybody know of any fundamentally different session
sharing/replication mechanism?
br,
flj
--- End Message ---
--- Begin Message ---
2011/3/17 Lorena Monroy O. <[email protected]>:
> Hola a todos
> Tengo un formulario que tiene dos paneles (.tpl), el cual maneja variables
> que vienen de php con la funcion setVariable, pero en el panel del menu me
> carga las tildes correctamente y a la derecha me las carga como un rombo con
> interrogación. Manejo Firefox y probe cambiando la configuración de
> caracteres de UTF-8 a Occidental, pero a la izquierda se ve mal y a la
> derecha se ve bien.
> Si modifico en el codigo por ó ahi se ve bien, pero en otros combos no...
> como puedo hacer que en ese tpl se vea bien sin modificarlo desde el codigo.
Hola, Lorenita;
También ofrecemos una lista de correo en español. Usted puede
encontrar aquí:
http://php.net/mailinglists
--
</Daniel P. Brown>
Network Infrastructure Manager
http://www.php.net/
--- End Message ---
--- Begin Message ---
I am having problems compiling 5.3.? with postgresql support.
'./configure' '--with-apxs2=/usr/local/apache2/bin/apxs'
'--with-pdo-pgsql=/usr/local/postgresql-9.0.3'
'--with-pgsql=/usr/local/postgresql-9.0.3'
This configure works with 5.2.?, but 5.3.? gets this
ext/standard/.libs/dns.o: In function `php_parserr':
/usr/local/php-5.3.5/ext/standard/dns.c:418: undefined reference to
`__dn_expand'
and more lines like the last one.
How can I fix this? I am using Ubuntu 10.10.
JIm
--- End Message ---