Unix Technical Forum

php pack() function in MySQL

This is a discussion on php pack() function in MySQL within the MySQL forums, part of the Database Server Software category; --> Does anybody know how can I implement php pack() function in MySQL database (in stored procedure)? pack("H*",md5($string)) http://us2.php.net/manual/sk/function.pack.php Thanks ...


Go Back   Unix Technical Forum > Database Server Software > MySQL

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-28-2008, 09:39 AM
crosti
 
Posts: n/a
Default php pack() function in MySQL

Does anybody know how can I implement php pack() function in MySQL
database (in stored procedure)?

pack("H*",md5($string))

http://us2.php.net/manual/sk/function.pack.php

Thanks in advance,
Max

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-28-2008, 09:40 AM
Michael Austin
 
Posts: n/a
Default Re: php pack() function in MySQL

crosti wrote:

> Does anybody know how can I implement php pack() function in MySQL
> database (in stored procedure)?
>
> pack("H*",md5($string))
>
> http://us2.php.net/manual/sk/function.pack.php
>
> Thanks in advance,
> Max
>


use PHP to create the "string" and store it in the database as VARCHAR data.
Something a bit more difficult would be to implement a UDP (user defined
procedure) - but it is programmed (c/c++), not scripted (php,perl, etc).

see:
http://mysql.meetup.com/137/boards/v...thread=2280640

and
http://dev.mysql.com/doc/refman/5.1/...ing-mysql.html

--
Michael Austin.
Database Consultant
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 04:13 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com