How to design a sequential hash-like function

后端 未结 6 440
谎友^
谎友^ 2020-12-14 04:57

I want to develop something similar to jsfiddle in where the user can input some data and then \"save\" it and get a unique random looking url that loads that data.

6条回答
  •  一向
    一向 (楼主)
    2020-12-14 05:21

    Here's how I implemented it. Here's the save.php file (can someone tell me if there are any design flaws in it):

    
    

    And here's load.php:

    
    

    Hope this helps others.

提交回复
热议问题