Hello!
On Wed, Mar 20, 2013 at 8:13 AM, alain meunier wrote:
> I would like to know wether openresty enables me to do that :
>
> Say that my url is : http://www.mydomain.com/helloworld.html.
>
> Say I set a variable value "hello world".
> set $s "hello world"
>
> How could I hash $s and split it into the caracters ?
>
> If my hash is 15A5F3456...
> then $s[0] would be 1, $s[1] would be 5, $s[2] would be A and so on.
>
> How could I do that with openresty ?
>
You can certainly do that in Lua via the ngx_lua module in the openresty bundle:
http://wiki.nginx.org/HttpLuaModule
See also the Lua reference manual:
http://www.lua.org/manual/5.1/manual.html
BTW, English posts are recommended to send to the openresty-en mailing
list: https://groups.google.com/group/openresty-en As you can tell,
the current list is a Chinese one.
Also, please remember subscribing to the list before posting,
otherwise your posts will always require manual moderation. Thank you
for your cooperation.
Best regards,
-agentzh