Well, what is going to be stored in a “Pastie”???
Text? If so, easy! Something else, let me know.
In general, site.com/1 , site.com/2 , site.com/3 would just be a database with a table with the first field as the 1,2,3… Lets call the first field a “folder”, and let’s call the “Pastie” field “pastie”.
So, a simple table in the database would be something like:
ID, Folder, Pastie
When a new Pastie is entered, it is assigned an ID (using auto-increment), a folder selected by the user or your code. So, to list them back the user would click on the folder and only the Pastie’s in that folder would be listed on the screen. Since this would be done with a simple query, it would be fast and simple to code.
All depends on what data you are storing. So, what do your “Pastie’s” contain?