For Programmers: Free Programming Magazines  


Home > Archive > PHP Pear > August 2004 > MD5 & Auth class









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author MD5 & Auth class
Pahlevanzadeh Mohsen

2004-08-31, 8:56 pm

Dears,I have changed my code,But i don't recv
"okkkkkkkkk" message in browser.
My code is :
<?
set_include_path(get_include_path().'/'.'auth');
include_once('Auth/Auth.php');
function x(){echo "xxxxxxxxxxxxxxxxxxx";}
mysql_pconnect('localhost',"root",'');
mysql_select_db('mem');
$x=MD5('mohsen');
mysql_query("insert into usernames values
(pass='$x',user = 'jiq');");

$parameterforauth=array("dsn"=>"mysql://jiq:mohsen@localhost/mem",
"table"=>"usernames",
"usernamecol"=>"user",
"passwordcol"=>"pass");
$ptr_auth_C=new auth("DB",$parameterforauth,"x");
$ptr_auth_C->start();
if ($ptr_auth_C->getAuth())
echo "okkkkkkkkkkkkkkk";
?>
What's my problem?
Yours,Mohsen......

=====
---------DIGITAL SIGNATURE-------------------
///Mohsen Pahlevanzadeh////////
Network administrator & programmer
My home phone is: +98213810146
My email address is
m_pahlevanzadeh at yahoo dot com
My website is: http://webnegar.net
----------------------------------------------------------------



_______________________________
Do you Yahoo!?
Win 1 of 4,000 free domain names from Yahoo! Enter now.
http://promotions.yahoo.com/goldrush
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com