Welcome! Log In Create A New Profile

Advanced

Re: nginx-0.8.50

September 08, 2010 05:08AM
On Wed, Sep 08, 2010 at 04:31:50AM -0400, codenet wrote:

> Спасибо.
> secure_link_md5
> $secure_link_expires.$file.PASSWORD;
>
> Что не правильно делаю..?
> $md =
> base64_encode(md5(time()+3600.'.'./file.zip.'.PASSWORD'));
>
>
> и ссылка получается
> http://test/p/'.$md.','.time()+3600.'/file.zip
>
> http://test/p/ZGQ1YzhmMjJiYmNiNWM2ZjVhYzM3ZTkyZjVlNmM5ZTA=,1283957763/file.zip
>
> Но всё равно $secure_link не пускает = ""

Это, извините, какой язык ?
Хэш должен быть меньше, типа, "Rrrm0hncreaXFOmLYJg_vw==".
Такое ощущение, что md5() возвращает текстовую представление, а не
бинарные данные.


--
Игорь Сысоев
http://sysoev.ru

_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
http://nginx.org/mailman/listinfo/nginx-ru
Subject Author Posted

nginx-0.8.50

Igor Sysoev September 02, 2010 11:04AM

Re: nginx-0.8.50

Alex Vorona September 02, 2010 11:28AM

Re: nginx-0.8.50

Igor Sysoev September 02, 2010 11:54AM

Re: nginx-0.8.50

Alex Aster September 05, 2010 11:10AM

Re: nginx-0.8.50

Igor Sysoev September 06, 2010 07:10AM

Re[2]: nginx-0.8.50

Михаил Монашёв September 06, 2010 03:42AM

Re: nginx-0.8.50

Marko Kevac September 03, 2010 07:56AM

Re: nginx-0.8.50

Igor Sysoev September 03, 2010 08:04AM

Re: nginx-0.8.50

codenet September 08, 2010 03:17AM

Re: nginx-0.8.50

Igor Sysoev September 08, 2010 03:30AM

Re: nginx-0.8.50

codenet September 08, 2010 04:31AM

Re: nginx-0.8.50

Igor Sysoev September 08, 2010 05:08AM

Re: nginx-0.8.50

codenet September 08, 2010 05:31AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 135
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready