linkoovi Posted November 24, 2006 Share Posted November 24, 2006 Hi to ya all,I read the [Prentice Hall] PHP5 Power Programming and i realy didnt understand the topic about url hashing, I tested the code from the book:[code]function create_parameters($array){ $data = ''; $ret = array(); foreach($array as $key=> $value){ $data .= $key.$value; $ret[] = "$key=$value"; } $hush = sha1($data); $ret[] = $hush; return join ('&',$ret);}echo '<a href="index.php?hush='.create_parameters(array('param' => 'viewmembers', 'page' => 'home')).'">LINK</a>';[/code]but i get this:http://localhost/cript/index.php?param=viewmembers&hash=70b84c04644ce28e540b1fcde91dadae Link to comment https://forums.phpfreaks.com/topic/28283-url-hashing/ Share on other sites More sharing options...
trq Posted November 24, 2006 Share Posted November 24, 2006 And? Do you have a question? Link to comment https://forums.phpfreaks.com/topic/28283-url-hashing/#findComment-129356 Share on other sites More sharing options...
sk1tL1L Posted November 24, 2006 Share Posted November 24, 2006 also we can't see the URL you have given us because its looking for "localhost" which is on your computer. You can setup your router and ISP to foward your ip address to your websever. Link to comment https://forums.phpfreaks.com/topic/28283-url-hashing/#findComment-129461 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.