Re: MD5 in pg and php

Поиск
Список
Период
Сортировка
От Christopher Kings-Lynne
Тема Re: MD5 in pg and php
Дата
Msg-id 4090BD29.7050406@familyhealth.com.au
обсуждение исходный текст
Ответ на Re: MD5 in pg and php  (Joolz <joolz@xs4all.nl>)
Список pgsql-php
> Thanks, I already found some fc1 rpm's (still in development). But can
> anyone tell me if the 7.4 internal md5() function will do the same as
> the PHP md5() function? Or do a quick select md5('apple') and let me
> know if the result is 'ae6d32585ecc4d33cb8cd68a047d8434'?
>
> I really wouldn't like to upgrade from my current stable situation,
> only to find out that it didn't solve my original problem.

Postgres 7.4:

usa=> select md5('apple');
                md5
----------------------------------
  1f3870be274f6c49b3e31a0c6728957f
(1 row)


And my PHP:

bash-2.05a$ php -q
<?php echo md5('apple') ?>
1f3870be274f6c49b3e31a0c6728957f

So mine are the same, but yours is completely different to anything.

Chris


В списке pgsql-php по дате отправления:

Предыдущее
От: Joolz
Дата:
Сообщение: Re: MD5 in pg and php
Следующее
От: "Stefan Sturm"
Дата:
Сообщение: Re: MD5 in pg and php