Re[4]: [PHP] PHPlib sessions without a DB?

2002-04-27 Thread Maxim Derkachev

Hello Richard,

Saturday, April 27, 2002, 2:24:21 PM, you wrote:

RA It's in the unsup directory. Maxim's release notes are in there too.
No, I meant the file session4.inc in the php-lib/php/session.
session4_custom.inc  release notes (quite outdated, but still usable)
are there too.

It's Phplib4 package, which also has session4.inc file, is in the unsup
directory, and is a completely different thing (while doing similar
work too), made by Barend Scholtus.




-- 
Best regards,
Maxim Derkachev mailto:[EMAIL PROTECTED]
System administrator  programmer,
Symbol-Plus Publishing Ltd.
phone: +7 (812) 324-53-53
www.books.ru, www.symbol.ru 


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




Re[2]: [PHP] PHPlib sessions without a DB?

2002-04-26 Thread Maxim Derkachev


MW I've been using the session4 stuff with phplib for a while and works well, 
MW but this is using db storage. I wouldn't imagine there will be a problem just 
MW using a different session container.

Session4 without Session4_custom uses native php containers, e.g.
files or mm.

MW As for the default distribution of phplib I don't know if this can use files 
MW for session storage I haven't had the need to find out.




-- 
Best regards,
Maxim Derkachev mailto:[EMAIL PROTECTED]
System administrator  programmer,
Symbol-Plus Publishing Ltd.
phone: +7 (812) 324-53-53
www.books.ru, www.symbol.ru 


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




Re[4]: [PHP] PHPlib sessions without a DB?

2002-04-26 Thread Maxim Derkachev

Hello Alan,

Friday, April 26, 2002, 5:57:29 PM, you wrote:

AM Where is this session4?
AM I pulled php-lib-stable out of CVS yesterday and do not see this anywhere.
AM Is this part of the bleeding edge in php-lib (without the stable) in CVS?

Yes, it is not in -stable yet, as I know.


-- 
Best regards,
Maxim Derkachev mailto:[EMAIL PROTECTED]
System administrator  programmer,
Symbol-Plus Publishing Ltd.
phone: +7 (812) 324-53-53
www.books.ru, www.symbol.ru 


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




Re: [PHP] Uploading files in Russian? (urgent)

2002-03-04 Thread Maxim Derkachev

Hello Lauri,

Monday, March 04, 2002, 7:25:27 PM, you wrote:


LV Does anybody have any ideas? Do I need to install Russian language packs
LV on my computer? Do I need to pass a header in PHP, which would define
LV the charset to use? Anything else? Which encoding to use (currently:
LV meta http-equiv=Content-Type content=text/html; charset=koi8-r)? 

It seems to me that the server you upload the files to uses the
mod_charset apache module (was initially designed to show documents in
several different cyrillic codepages, using one codebase with one
predefined charset). It recodes form content and fileuploads too.
I guess the module is misconfigured, so it recodes the files
incorrectly. You should discuss the issue with the server
administrator.
For additional info look at http://apache.lexa.ru/english/ for an
english homepage of the mod_charset.




-- 
Best regards,
Maxim Derkachev mailto:[EMAIL PROTECTED]
System administrator  programmer,
Symbol-Plus Publishing Ltd.
phone: +7 (812) 324-53-53
www.books.ru, www.symbol.ru 


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




Re: [PHP] Goofy interactions between $this and vars in classs. 4.1.0

2001-12-17 Thread Maxim Derkachev

Hello Mark,

Monday, December 17, 2001, 11:05:15 AM, you wrote:

M However, if I Change the Zabba function to:

M function Zabba()
M {
M $localVariable = $this;
M $localVariable-addValue(asdfasdfasdf);
M }

M Then I will get on output, a NULL array.

M Why is this?  Is there any particular reason this happens?

Yes, there is. When you do $localVariable = $this, a new object in
$localVariable is born. This object definitely dies at the function
end, so you get nothing in return. To make the things work properly,
you'd need a reference to the $this object, hence the expression
should be $localVariable = $this.
But don't forget, that the things will change with the new Zend engine
coming and PHP 5 (I suppose).


-- 
Best regards,
Maxim Derkachev mailto:[EMAIL PROTECTED]
System administrator  programmer,
Symbol-Plus Publishing Ltd.
phone: +7 (812) 324-53-53
www.books.ru, www.symbol.ru 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] If PHP4 existed in 1995 we would of taken over the world by now

2001-09-03 Thread Maxim Derkachev

Hello Bob,

If someone's grandmother had balls, she would have been someone's
grandfather (Russian idiom).

Do you really think that the development language a company choose
will make the company successful ??


Saturday, September 01, 2001, 7:55:19 AM, you wrote:

B If PHP4 existed in 1995 then http://www.squirrelmail.org could of been
B hotmail.com
B If PHP4 existed in 1995 then http://phpwebsite.appstate.edu could of
B been geocities.com
B If PHP4 existed in 1995 then http://www.phpauction.org could of been
B ebay.com
B If PHP4 existed in 1995 then http://www.audiogalaxy.com could of been
B napster.com




-- 
Best regards,
Maxim Derkachev mailto:[EMAIL PROTECTED]
System administrator  programmer,
Symbol-Plus Publishing Ltd.
phone: +7 (812) 324-53-53
www.books.ru, www.symbol.ru 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re[2]: [PHP] If PHP4 existed in 1995 we would of taken over the world by now

2001-09-03 Thread Maxim Derkachev

Hello Bob,

Monday, September 03, 2001, 1:08:40 PM, you wrote:
B If in 1995 you tell a project manager that I can program
B hotmail.com in a couple weeks and that it would be a lot faster then cgi
B then they would of been forced to use it and all the marketing would not
B matter.
Then (maybe) hotmail could have been written in php, but again, it
would be hotmail, not squirrelmail. We know hotmail as it is now not because
it is written in perl/asp/php/jsp/whatever, but because it is simply a
successful project. Marketing and promotion here means more than the
underlying engine - without it there would be no hotmail or yahoo, but
something else, like, say, coldmail and hoooya, better promoted.

Meanwhile, there were no microwave oven in 1950. It simply could not
exist in 1950. Like PHP, ASP, JSP, etc. could not exist in 1985 in the
current form. Technology needs time to improve.



-- 
Best regards,
Maxim Derkachev mailto:[EMAIL PROTECTED]
System administrator  programmer,
Symbol-Plus Publishing Ltd.
phone: +7 (812) 324-53-53
www.books.ru, www.symbol.ru 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re[2]: [PHP] charset win1251

2001-08-13 Thread Maxim Derkachev

Hello BRACK,

Monday, August 13, 2001, 8:12:42 PM, you wrote:
B You are probably only one in this mailing list with experiance of
B work with russian language in PHP, I have another qwestion 
B concerning Opera and textarea - I can't make Opera to accept 
B cyrillic text in textareas

I'm sorry, but I haven't much experience with Opera browsers. If you
read Russian, try to search cooler.emax.ru - there were a lot of
articles concerning Opera and its russificarion.



-- 
Best regards,
Maxim Derkachev mailto:[EMAIL PROTECTED]
System administrator  programmer,
Symbol-Plus Publishing Ltd.
phone: +7 (812) 324-53-53
www.books.ru, www.symbol.ru 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] charset win1251

2001-08-10 Thread Maxim Derkachev

Hello BRACK,

Thursday, August 09, 2001, 10:19:46 PM, you wrote:
B I finished English version of my site and wanted to start Russian
B part but realized that MySQL server returnes all data in koi-8r 
B charset which is not very comfortable for some of the users, 
B specially I know that A LOT of russians using Opera brawser older 
B versions of which do not support koi-8 Any one knows how to 
B convert koi-8 results of MySQL to win1251? 

It depends. What charset is your data in?
If you DB's data is already in koi-8r, ther only thing you can do at the
database level is to use a query:
SET CHARACTER SET  koi8_cp1251
and then execute your queries.
All the data will be converted to win1251 codepage on the fly.
Alternately, you can place all the data to the database in 1251
charset, and then compile mysqld with option
--with-charset=cp1251 (used in ./configure)
Then you'll have all the data returned in cp1251, and mysql will sort
all the text data using that charset. To have the data returned in
koi-8 in this case you'll have to issue a query
SET CHARACTER SET  cp1251_koi8

By the way, there's not so many russians, if any, using the old Opera browsers
:)


-- 
Best regards,
Maxim Derkachev mailto:[EMAIL PROTECTED]
System administrator  programmer,
Symbol-Plus Publishing Ltd.
phone: +7 (812) 324-53-53
www.books.ru, www.symbol.ru 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re[2]: [PHP] System() and PGP

2001-07-20 Thread Maxim Derkachev

Hello David,

Friday, July 20, 2001, 5:50:32 AM, you wrote:
DP I'm using apache, so is there away to get the output sent to PHP?  Someone
DP suggested using system(pgp 21); but all I get is:
DP Pretty Good Privacy(tm) Version 6.5.1i (c) 1999 Network Associates Inc.
DP Export of this software may be restricted by the U.S. government. No
DP configuration file found. Error!!! insufficient random bits

DP Not quite what I had in mind but a step in the right direction.  Any ideas?

You've got pretty error message from STDERR :)
It could not find you keyring and tried to compute a new instead.
Failed. Complained.
Look at phpclasses.upperdesign.com. There are classes for both
GPG (mine)  and PGP (other guy's) encryption. I guess you'll find the
working pattern there.


-- 
Best regards,
Maxim Derkachev mailto:[EMAIL PROTECTED]
System administrator  programmer,
Symbol-Plus Publishing Ltd.
phone: +7 (812) 324-53-53
www.books.ru, www.symbol.ru 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] XSLT module bugs (?)

2001-07-19 Thread Maxim Derkachev

MD Just met two bugs (?) in the xslt module.

The bugs appear to be Sablot's. Just have the same results using
sabcmd. Posting report there.



-- 
Best regards,
Maxim Derkachev mailto:[EMAIL PROTECTED]
System administrator  programmer,
Symbol-Plus Publishing Ltd.
phone: +7 (812) 324-53-53
www.books.ru, www.symbol.ru 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re[2]: [PHP] XSLT module bugs (?)

2001-07-19 Thread Maxim Derkachev

Hello Francis,

Thursday, July 19, 2001, 5:43:37 PM, you wrote:

FF The ® is because (well I think) of the utf-8 code, try utf8_decode() to
FF decode it and to get it back.

Not bugs, as I know now.
xsl:output encoding='something' make the things work well.

FF P.S. What is they command that you made for php 4.0.6 to parse your xml
FF file, I'm not able to parse a xml file with sablotron since 4.0.6.

xslt_process(). Works well since the first try. I don't process file,
I compose xml in a string first.

-- 
Best regards,
Maxim Derkachev mailto:[EMAIL PROTECTED]
System administrator  programmer,
Symbol-Plus Publishing Ltd.
phone: +7 (812) 324-53-53
www.books.ru, www.symbol.ru 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re[2]: [PHP] XSLT module bugs (?)

2001-07-19 Thread Maxim Derkachev

Hello Francis,

Thursday, July 19, 2001, 6:05:55 PM, you wrote:

FF Here what I use xslt_process($xslString, $xmlString, $this-result);

FF and it give me this error 

FF Warning: Supplied argument is not a valid XSLT Processor resource in
FF /home/httpd/html/xml/include/class.transform_xsl.php on line
FF 74

Haven't seen such an error yet.


-- 
Best regards,
Maxim Derkachev mailto:[EMAIL PROTECTED]
System administrator  programmer,
Symbol-Plus Publishing Ltd.
phone: +7 (812) 324-53-53
www.books.ru, www.symbol.ru 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re[2]: [PHP] XSLT module bugs (?)

2001-07-19 Thread Maxim Derkachev

Hello Francis,

Thursday, July 19, 2001, 6:18:58 PM, you wrote:

FF Hi again Maxim, when this problem started I found that in the xslt php
FF cvs (because the manual on the php site doesn't seen to be accurate
FF anymore)

FF mixed xslt_process(resource processor,
FF string xml,
FF string xsl[,
FF string result[,
FF array  arguments[,
FF array  parameters]]])


FF so xslt_process need a resource processor, so it has to have an error,
FF because I don't pass any process.

I suppose if only one resource is present, it is used by default.

FF Are you sure that you're using 4.0.6? If so what was your configure
FF option?

I definitely use 4.0.6. The option is  --with-sablot=path-to-sablot-library.


-- 
Best regards,
Maxim Derkachev mailto:[EMAIL PROTECTED]
System administrator  programmer,
Symbol-Plus Publishing Ltd.
phone: +7 (812) 324-53-53
www.books.ru, www.symbol.ru 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Using GnuPG with PHP

2001-07-19 Thread Maxim Derkachev

Hello Jeff,

Thursday, July 19, 2001, 6:50:18 PM, you wrote:


JB $command=echo \$plain\|gpg -e -a --always-trust --no-secmem-warning --batch -r 
public_key;
JB $encrypted=`$command`;

use popen() in read mode instead. There's a class made by me at
phpclasses.upperdesign.com that do the job.


-- 
Best regards,
Maxim Derkachev mailto:[EMAIL PROTECTED]
System administrator  programmer,
Symbol-Plus Publishing Ltd.
phone: +7 (812) 324-53-53
www.books.ru, www.symbol.ru 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] PHP PGP

2001-06-29 Thread Maxim Derkachev

Hello Pepe,

Thursday, June 28, 2001, 6:05:48 PM, you wrote:

PL I want to encrypt mails coming from my webform with pgp. Is it possible?

It is possible. Also, If you had been chosen GNUPG instead of PGP you
could use the class located at 
http://phpclasses.upperdesign.com/browse.html/package/245





-- 
Best regards,
Maxim Derkachev mailto:[EMAIL PROTECTED]
System administrator  programmer,
Symbol-Plus Publishing Ltd.
phone: +7 (812) 324-53-53
www.books.ru, www.symbol.ru 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] foreach vs. while(list() = each())

2001-04-12 Thread Maxim Derkachev

Hello Joe,

Wednesday, April 11, 2001, 10:49:31 PM, you wrote:

JS What are the differences in these? I know with while() you have to reset() the
JS array afterwards, but foreach() you don't. Also foreach() appears to be quite
JS a bit faster. 

You don't need to reset() the array, You also don't need list() and
each(), which impose additional overhead. You put the array loop to the foreach()
implementation, which is in C, instead of implementing it with PHP with while(),
list() and each().
That must be a lot faster.

JS My main question is there ANY difference in how these two loop through the 
JS array.

The main difference is that foreach() works with the array's copy. It
works with the same data (using reference counts) while the initial array hasn't
changed . But if you change the array, the real copy will be created,
and you won't see the changes within the foreach() loop - it will
operate with the copy of the initial array (unchanged).
So, foreach() should be used if you don't change the array in the
loop. If you do, use while().

E.g:

?php
$a = array (1, 2, 3);

print "foreach:\n";
foreach ($a as $k = $v) {
  if (!$k) unset($a[1]);
  print "$v\n";
}

print "while:\n";
while (list ($k, $v) = each ($a)) {
  print "$v\n";
}
?

will output:
foreach:
1
2  --- it should not, the value has already been unset!
3
while:
1
3

--
Best regards,
Maxim Derkachev mailto:[EMAIL PROTECTED]
Symbol-Plus Publishing Ltd.
phone: +7 (812) 324-53-53
http://www.Books.Ru -- All Books of Russia
 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re[2]: [PHP] foreach vs. while(list() = each())

2001-04-12 Thread Maxim Derkachev

Hello Tim,

Thursday, April 12, 2001, 1:43:53 PM, you wrote:

TW you can't nest foreach as you should be able to. Ecah foreach is supposed to
TW have it's own pointer in the array, but it doesn't ... this is a known bug.

What do you mean? Foreach() can be nested, and it works perfect.

?php
$a = array (array (1, 2, 3), array(4,5,6), array(7,8,9));
foreach ($a as $k = $first) {
  print "$k:\n";
  foreach ($first as $second) {
print "\t$second\n";
  }
}
?

output:
0:
1
2
3
1:
4
5
6
2:
7
8
9




-- 
Best regards,
Maxim Derkachev mailto:[EMAIL PROTECTED]
Symbol-Plus Publishing Ltd.
phone: +7 (812) 324-53-53
http://www.Books.Ru -- All Books of Russia
 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re[2]: [PHP] assignment operator works for comparison??

2001-04-11 Thread Maxim Derkachev

Hello Dan,

Wednesday, April 11, 2001, 1:29:22 AM, you wrote:



   if($shiny = 0){
 This does not compare anyting, it assigns 0 to $shiny

D yes i know, but shouldnt this operation return true?

No. This operator returns the value assigned (0 in this case, which is
false). This expression will always return false.

-- 
Best regards,
Maxim Derkachev mailto:[EMAIL PROTECTED]
Symbol-Plus Publishing Ltd.
phone: +7 (812) 324-53-53
http://www.Books.Ru -- All Books of Russia
 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] nested loops and PHPLIB templates

2001-04-09 Thread Maxim Derkachev

Hello paula,

Monday, April 09, 2001, 6:47:21 AM, you wrote:

p I was sending desperate emails to this list related to nested loops and array 
comparision.
p Well, just let you know that the problem seems to be that I'm using this with PHPLIB
p templates and those can't handle nested loops.

template.html:
table

!-- BEGIN row --
tr
!-- BEGIN column --
td{val}/td
!-- END column --
/tr
!-- END row --
/table

code:
// place here some code for multi-row multi-column data array

$tpl = new Template;
$tpl-set_file('tp', 'template.html');
$tpl-set_block('tp', 'row', 'row_parsed');
$tpl-set_block('row', 'column', 'column_parsed');

foreach ($rows as $row = $columns) {

  /* IMPORTANT: free the column block from previous results,
  do it like this: */
  $tpl-set_var('column_parsed', '');
  
  foreach ($columns as $column) {
 $tpl-set_var('val', $column);
 $tpl-parse('column_parsed', 'column', true);
  }
  $tpl-parse('row_parsed', 'row', true);
}
$tpl-pparse('out', 'tp');

So, you have nested blocks filled with nested loops.



-- 
Best regards,
Maxim Derkachev mailto:[EMAIL PROTECTED]
Symbol-Plus Publishing Ltd.
phone: +7 (812) 324-53-53
http://www.Books.Ru -- All Books of Russia




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Is linkage to C/C++ lib or programs in Unix possible?

2001-03-15 Thread Maxim Derkachev

Hello Martin,

Thursday, March 15, 2001, 11:20:58 AM, you wrote:
ML Is it possible to make PHP be able to communicate with existing C/C++
ML libaries/programs in Unix/Linux environments?   That is, I may send a
ML message to the C/C++ stuff, and get some feedbacks from them.

For programs, use system() (if they can accept arguments in a comand
string and return values to STDOUT).
For libraries - only if you wrote a PHP extension using those
libraries. PHP programs have no C-style access to memory, so they can
not communicate with C libraries that not aware of PHP.



-- 
Best regards,
Maxim Derkachev mailto:[EMAIL PROTECTED]
Symbol-Plus Publishing Ltd.
phone: +7 (812) 324-53-53
http://www.Books.Ru -- All Books of Russia
 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] session in php3

2001-03-07 Thread Maxim Derkachev


http://phplib.netuse.de

-- 
Best regards,
Maxim Derkachev mailto:[EMAIL PROTECTED]
Symbol-Plus Publishing Ltd.
phone: +7 (812) 324-53-53
http://www.Books.Ru -- All Books of Russia




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]