php-general Digest 10 Jul 2012 15:55:41 -0000 Issue 7882

Topics (messages 318414 through 318417):

Re: Using named Pipes between PHP and ZIP
        318414 by: Matijn Woudt

Session Checking
        318415 by: Floyd Resler
        318416 by: Daniel Brown

Quem esta por dentro de PSR?
        318417 by: Volmar Machado

Administrivia:

To subscribe to the digest, e-mail:
        php-general-digest-subscr...@lists.php.net

To unsubscribe from the digest, e-mail:
        php-general-digest-unsubscr...@lists.php.net

To post to the list, e-mail:
        php-gene...@lists.php.net


----------------------------------------------------------------------
--- Begin Message ---
On Mon, Jul 9, 2012 at 7:19 PM, Dennis Heck <n...@dennisheck.de> wrote:
>
> Unfortunately it makes no difference if i use zip with 2 - or if I leave
> them ommited. The longer I guess about it, the more I think it might be a
> ZIP topic, namely how the stream to stdin needs to be like so zip will know
> the name of the file from it.
>
>
> Regards,
> Dennis

This is a known problem with zip, it's just not possible. Either you
select files, or you pass something on stdin (which will have no
filename). You will have to do the same trick with mkfifo, but you can
use the php function posix_mkfifo[1] for that.

- Matijn

[1] php.net/posix_mkfifo

--- End Message ---
--- Begin Message ---
I want to have an alert pop up to let the user know their session is about to 
expire.  Would the best approach be to do a timer in Javascript or check it in 
PHP.  I'm storing session data in a MySQL database so I can know when a session 
will expire.  If I check it through PHP will the session expiration refresh 
when I check it?

Thanks!
Floyd

BTW, is Arby's having a roast beef sale or something?  Everyone on the list 
seems to be gone!


--- End Message ---
--- Begin Message ---
On Mon, Jul 9, 2012 at 2:40 PM, Floyd Resler <fres...@adex-intl.com> wrote:
> I want to have an alert pop up to let the user know their session is about to 
> expire.  Would the best approach be to do a timer in Javascript or check it 
> in PHP.  I'm storing session data in a MySQL database so I can know when a 
> session will expire.  If I check it through PHP will the session expiration 
> refresh when I check it?

    If the browser is accessing the script, even in the background
(such as via AJAX calls), it'll renew the session.  What you could do
is populate some JavaScript to count down to the expiry, or - if
you're storing sessions via MySQL or something similar - check the
record manually via a non-session-enabled script.

> BTW, is Arby's having a roast beef sale or something?  Everyone on the list 
> seems to be gone!

    Better not be.  I just had lunch 90 minutes ago.  (Though, since
it was homemade wood-smoked barbecue beef brisket with pickles and red
onions on a kaiser roll, I guess I can't complain.)

-- 
</Daniel P. Brown>
Network Infrastructure Manager
http://www.php.net/

--- End Message ---
--- Begin Message ---
Nao sei se sabem, mas tem uma galera implemantendo PSR-X, que sao
padroes para desenvolvimento em PHP. Gostaria de saber o que pensam
disso :)

--- End Message ---

Reply via email to