0
I am developing a system for ordinary users (these do not need to log) and users with permissions (registered in the database).
Let’s assume that the system is for registering phone numbers and that ordinary users use this site to make queries in numbers, how it would work:
Common user accesses listatelefone.com (index.php)
choose your city and the system redirects that user to cidade.php
through the ID of the chosen city.
Looking to offer user friendly URL, the idea would be:
www.listatelefone.com/ (index.php)
www.listatelefone.com/Nomedacidade (aqui seria o arquivo cidade.php)
As for the restricted part, assuming that the user with permission has a "restricted" home page and pages to register phones with upload image files, what would be a good way to organize this in the URL and folder directory so that the result would be
www.listatelefone.com/restrito/
on this home page and consequentlywww.listatelefone.com/restrito/cadastro
?
For this I could create a folder .../restrita/
and add the file cadastro.php
in there? or there are different and more interesting ways of doing it?
Forgetting just the Urls and going to the organization part of uploads and processing files (valida_form.php
for example) I thought about creating an Upload folder, where for example, inside that folder, you would have .../imgs/cadastro/
(this page would include the registration images) while to save processing files, it would be in some folder like .../processos/
.
And finally, the archives .css
, .js
, among others - these I thought to put each one in its respective folder, for example:
.../css/arquivos.css
.../js/arquivos.js
- How do I get friendly Urls and follow the structure I mentioned?
Your question seems a little broad, and maybe based on opinions - anyway I edited to try to make it clearer - if that’s not your original intention, you can edit it and go back. Anyway, take a read here on how to formulate good questions. :)
– Daniel
Ah, and "discussion" is not quite the format of the site - so editing is necessary.
– Daniel
I understand. In this case, since discussion is not the format, I agree with the edition and I wait for the answers anyway, thank you! ^^
– Wendel Souto