KillerWolf Posted December 13, 2006 Share Posted December 13, 2006 ok this else statment is an else from a set session if !set kick back to loggin else ... hopfully you get the idea. but iam getting this error "Parse error: parse error, unexpected T_STRING, expecting ',' or ';' in C:\web\home.php on line 25"[code]echo "<div id="loggedin"><p class="success">Welcome {$_SESSION['name']}</p></div>";[/code] Quote Link to comment Share on other sites More sharing options...
hitman6003 Posted December 13, 2006 Share Posted December 13, 2006 You need to escape the double quotes inside of the double quotes:[code]echo "<div id=\"loggedin\"><p class=\"success\">Welcome {$_SESSION['name']}</p></div>";[/code] Quote Link to comment Share on other sites More sharing options...
KillerWolf Posted December 13, 2006 Author Share Posted December 13, 2006 cool thx i do have another question is their a ezy way to take a md5 session id and convert it to char? Quote Link to comment Share on other sites More sharing options...
hitman6003 Posted December 13, 2006 Share Posted December 13, 2006 You can't reverse md5, only convert a string that you think is equivalent and compare the result Quote Link to comment Share on other sites More sharing options...
ki Posted December 13, 2006 Share Posted December 13, 2006 [quote author=hitman6003 link=topic=118384.msg483758#msg483758 date=1165977342]You can't reverse md5, only convert a string that you think is equivalent and compare the result[/quote]Your wrong about that, you can convert a md5 hash back to regular text. Quote Link to comment Share on other sites More sharing options...
KillerWolf Posted December 13, 2006 Author Share Posted December 13, 2006 ok how then :) i need to know Quote Link to comment Share on other sites More sharing options...
trq Posted December 13, 2006 Share Posted December 13, 2006 You can't. Well not without [b]alot[/b] of time and cpu cycles. ki has no idea what he is talking about.The question is Why do you need to convert it back? Quote Link to comment Share on other sites More sharing options...
KillerWolf Posted December 13, 2006 Author Share Posted December 13, 2006 i wanted to greet the users using his name. could i run another querry and grab it instead? Quote Link to comment Share on other sites More sharing options...
trq Posted December 13, 2006 Share Posted December 13, 2006 I dont understand. Why and where is your users name md5'd? I usually only md5 a users password stored in the database. Quote Link to comment Share on other sites More sharing options...
KillerWolf Posted December 13, 2006 Author Share Posted December 13, 2006 $password = md5($password1); Quote Link to comment Share on other sites More sharing options...
trq Posted December 13, 2006 Share Posted December 13, 2006 Is that meant to be an answer? Quote Link to comment Share on other sites More sharing options...
ki Posted December 13, 2006 Share Posted December 13, 2006 I don't know how to do it myself but it is very possible from sites like:http://md5.benramsey.com/But like someone said, theres no point to decoding md5. Quote Link to comment Share on other sites More sharing options...
trq Posted December 13, 2006 Share Posted December 13, 2006 That is simply done by someone creating a database of common words and there respective md5 hash's. The encryption has not been broken. This is why its always best to use a strong password. Quote Link to comment Share on other sites More sharing options...
hitman6003 Posted December 13, 2006 Share Posted December 13, 2006 The guy that runs the page that you linked to even states at the bottom:[quote] You may use the XML interface to look up MD5 hashes from all the databases that I search: [/quote]He doesn't reverse it...he searches a database(s) of hashes for a match and returns thatEDIT:I tried several simple strings...if you wanted to reverse passwords or some such, anything but the simplest of passwords will probably not be found...even "P@SSword" wasn't in the database. Quote Link to comment Share on other sites More sharing options...
ki Posted December 13, 2006 Share Posted December 13, 2006 I never even saw that until you pointed it out. Well, I kinda got confused due to the fact that someone stated it as a title of the program on a different site. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.