[PHP] e107 opinions

2006-08-01 Thread Tony Aldrich

Good day!
I want to ask any comments about e107 CMS? Easy? Usefull? Extendible?
Thanks. Tony.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Ru locale + UTF-8

2006-08-07 Thread Tony Aldrich

Good day,
I try to set ru locale that is converted to UTF-8 in output.
I tried ru_ru.UTF-8 - with no results.
"ru" returns week and month names in win-1251.
What I missed?

Apache/2.0.55 Win32 PHP/5.1.2

Tony.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Slow mail()

2006-05-02 Thread Tony Aldrich

Hello!
What are the reasons of slow mail() (about 30-40 seconds)?

Thanks,
Tony.


Re: [PHP] Slow mail()

2006-05-02 Thread Tony Aldrich

Thanks for all.

Hope host sysadmin will work on this.
I wondered if it's my problem but on my testing environment it is relatively
fast.

Again, thanks.


[PHP] List of sessions

2006-05-02 Thread Tony Aldrich

Good day,
Does anybody know how to get a list of current sessions?
I need to clear some database rows that where associated with some SID.
Can it be done without probing of maxlifetime?

Thanks in advance.
Tony.


[PHP] PHP-Jabber

2006-05-02 Thread Tony Aldrich

Hello,
Can somebody recommend clean php jabber library? I must send notifications
to some users.

Tony.


Re: [PHP] List of sessions

2006-05-03 Thread Tony Aldrich

Well, I mean visitors of site. They can open it in several windows or in
several browsers. I understand that each browser on a machine will be a
session (in simple explanation). And for all of them I create some info in
database. Then they close browser. I must clean up unused info.
That's why I want to query alive sessions. Or query their death time
(timeout).
I thought of something like

$sess=get_session_list();

or

$isalive=is_session_alive($session_id);

Thanks.



On 5/4/06, Gerry D <[EMAIL PROTECTED]> wrote:


Can you have more than 1 session?

On 5/2/06, Tony Aldrich <[EMAIL PROTECTED]> wrote:
> Good day,
> Does anybody know how to get a list of current sessions?
> I need to clear some database rows that where associated with some SID.
> Can it be done without probing of maxlifetime?



Re: [PHP] List of sessions

2006-05-04 Thread Tony Aldrich

Thanks all for explanations.
I'll try to use callback functions.

Tony.

On 5/4/06, Joe Wollard <[EMAIL PROTECTED]> wrote:


If you store your sessions in a database then your could gain a little
mode control over your session, but I think what you're asking is if there's
a way to tell if a user has closed the browser thus killing the session on
their side. If that's what you're asking then the answer is not going to lie
strictly with PHP as the server has no way to ping a user's browser. A quick
hack off the top of my head might be to find a creative way of using the
onBeforePageUnload() (or w/e it is) javascript function along with frames.

Anyway, you can check out php.net for more details on how to use a
database for session storage: 
http://www.php.net/manual/en/function.session-set-save-handler.php


Cheers,
- Joe



On 5/4/06, Tony Aldrich <[EMAIL PROTECTED]> wrote:
>
> Well, I mean visitors of site. They can open it in several windows or in
> several browsers. I understand that each browser on a machine will be a
> session (in simple explanation). And for all of them I create some info
> in
> database. Then they close browser. I must clean up unused info.
> That's why I want to query alive sessions. Or query their death time
> (timeout).
> I thought of something like
>
> $sess=get_session_list();
>
> or
>
> $isalive=is_session_alive($session_id);
>
> Thanks.
>
>
>
> On 5/4/06, Gerry D <[EMAIL PROTECTED]> wrote:
> >
> > Can you have more than 1 session?
> >
> > On 5/2/06, Tony Aldrich <[EMAIL PROTECTED]> wrote:
> > > Good day,
> > > Does anybody know how to get a list of current sessions?
> > > I need to clear some database rows that where associated with some
> SID.
> > > Can it be done without probing of maxlifetime?
> >
>
>



Re: [PHP] List of sessions

2006-05-04 Thread Tony Aldrich


Honestly, the easiest way to solve this is to switch to 'user' PHP
sessions:
http://php.net/session-set-save-handler



Thanks. I'm trying now to do this.
I'm wondering about "session-set-save-handler" - what is "manual garbage
collector" here?
It means I must explicitly "unset" all variables or something else I must
do?



Once you do that, you're already nuking the actual session data for

expired sessions in your database, and you can delete anything else in
parallel.

Your only other option would be to troll through /tmp looking for PHP
session filenames that match the session ID or whatever, and then
searching your database for IDs that aren't listed in there, and...



Yes, I've tried this already - as a quick solve.
I found out that session_save_path() returns null ander Windows (where I'm
testing) and real folder on host side.
And this means that I must use Windows temp folder and don't forget to
filter files as 'sess_*'.

Tony.


Re: [PHP] Upgrade problems PHP 5.1.4 (Windows)

2006-05-22 Thread Tony Aldrich

I've understood, it's Windows.
If you added root php directory to Path environment variable it sometimes
does not take effect until you restart Windows. (???May be it's cached
somewhere?)
And don't forget to change in php.ini Extension Directory to ./ext or where
all extension dll's are placed.

Tony.

On 5/23/06, Beauford <[EMAIL PROTECTED]> wrote:


Hi,

I just upgraded to PHP 5.1.4 and now none of my sites will connect to
MySQL.
I keep getting the error:

Fatal error: Call to undefined function mysql_connect()

I enabled php_mysql.dll in php.ini as one article suggested, but still no
go.

Any suggestions?

Thanks

Beauford

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php