Tofast4u Posted September 8, 2012 Share Posted September 8, 2012 Hey my friends, today i have some special question: My Situation: Im opening a static URL in a .php file thats how it was so far. since a couple of days the dynamic url: anysite.com/?sub=12345 changed into: http://anysite.com/?/sub?linkId=PS:def.hd.mainnav.dsl&ps_id=12345&ucuoId=PUPS:def.EUE.DE-20120908025315-65EBFAC907DC507FB94357EE230897AF.TCpfix110b This URL will be changed any time youre open it. http://anysite.com/?/sub?linkId=PS:def.hd.mainnav.dsl&ps_id=12345&ucuoId=PUPS:def.EUE.DE- <--- this part will always be the same 20120908025315 <---- this is year/month/day/hour/minute/second 65EBFAC907DC507FB94357EE230897AF <--- this must be somekind of hash so my question is has anybody a idea how i can "create" this hash in my php file? TCpfix110b <---- and about this im clueless so far as its changing too ! some examples: TCpfix113b TCpfix113b TCpfix112b TCpfix110b TCpfix110b TCpfix113b so far my solution is looking like: echo '<a href="http://anysite.com/sub??linkId=PS:def.hd.mainnav.dsl&ps_id=12345&ucuoId=PUPS:def.EUE.DE-'.date('YmdHis').'-65EBFAC907DC507FB94357EE230897AF.TCpfix110b"> ... '; but i still need a way to re-create the hash in my php file and about the TCPfix any ideas/suggestions would be awesome so long, Tofast4u Quote Link to comment https://forums.phpfreaks.com/topic/268141-problem-with-a-dynamic-url-with-hash/ Share on other sites More sharing options...
Christian F. Posted September 8, 2012 Share Posted September 8, 2012 Looks like it's an MD5 hash. Of what, though, I cannot tell you. The only ones who can is the guy/team who wrote the code for the site. Quote Link to comment https://forums.phpfreaks.com/topic/268141-problem-with-a-dynamic-url-with-hash/#findComment-1376228 Share on other sites More sharing options...
xyph Posted September 8, 2012 Share Posted September 8, 2012 You want a random hash? <?php $random = mcrypt_create_iv(32, MCRYPT_DEV_URANDOM); $hash = strtoupper( md5($random) ); echo $hash; ?> Quote Link to comment https://forums.phpfreaks.com/topic/268141-problem-with-a-dynamic-url-with-hash/#findComment-1376239 Share on other sites More sharing options...
Tofast4u Posted September 8, 2012 Author Share Posted September 8, 2012 ok thaqnk you guys anyone a idea what this is: TCpfix113b TCpfix113b TCpfix112b TCpfix110b TCpfix110b TCpfix113b ? because its not only a md5 hash its like md5hash+TCpfix113b Quote Link to comment https://forums.phpfreaks.com/topic/268141-problem-with-a-dynamic-url-with-hash/#findComment-1376244 Share on other sites More sharing options...
Christian F. Posted September 8, 2012 Share Posted September 8, 2012 As I previously stated, the only people who can answer your questions are those who made the system in the first place. Well, it's actually anyone who has access to the source code, but most likely it'll only be those who made it who has access and can tell you. Quote Link to comment https://forums.phpfreaks.com/topic/268141-problem-with-a-dynamic-url-with-hash/#findComment-1376247 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.