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] Link to comment https://forums.phpfreaks.com/topic/30426-echo-error/ 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] Link to comment https://forums.phpfreaks.com/topic/30426-echo-error/#findComment-140077 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? Link to comment https://forums.phpfreaks.com/topic/30426-echo-error/#findComment-140092 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 Link to comment https://forums.phpfreaks.com/topic/30426-echo-error/#findComment-140094 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. Link to comment https://forums.phpfreaks.com/topic/30426-echo-error/#findComment-140100 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 Link to comment https://forums.phpfreaks.com/topic/30426-echo-error/#findComment-140107 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? Link to comment https://forums.phpfreaks.com/topic/30426-echo-error/#findComment-140109 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? Link to comment https://forums.phpfreaks.com/topic/30426-echo-error/#findComment-140111 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. Link to comment https://forums.phpfreaks.com/topic/30426-echo-error/#findComment-140113 Share on other sites More sharing options...
KillerWolf Posted December 13, 2006 Author Share Posted December 13, 2006 $password = md5($password1); Link to comment https://forums.phpfreaks.com/topic/30426-echo-error/#findComment-140114 Share on other sites More sharing options...
trq Posted December 13, 2006 Share Posted December 13, 2006 Is that meant to be an answer? Link to comment https://forums.phpfreaks.com/topic/30426-echo-error/#findComment-140115 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. Link to comment https://forums.phpfreaks.com/topic/30426-echo-error/#findComment-140198 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. Link to comment https://forums.phpfreaks.com/topic/30426-echo-error/#findComment-140219 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. Link to comment https://forums.phpfreaks.com/topic/30426-echo-error/#findComment-140395 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. Link to comment https://forums.phpfreaks.com/topic/30426-echo-error/#findComment-140472 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.