Answer the question
In order to leave comments, you need to log in
Executing a script after going through the address bar?
Apparently they didn’t understand my previous question, I’ll rephrase it, let’s take the site www.toster.ru and a separate request https://toster.ru/user/opium , as we see, when you go to the second link, the name, image, various links and something like that, I would like to implement this on my site, I also have such a form for showing images, a name, and so on, and I want a script to be included when going through the link www.site.ru/name, how to do this with script file and .htaccess file?
Answer the question
In order to leave comments, you need to log in
Terrible way - htaccess, as you wrote (google ModRewrite)
Normal way - routing, google Php Router, Front Controller
Good way - use frameworks or ready-made components specifically for routing (google, for example, Symphony Router)
And the questions here will be answered by essence, and not like this.
If you couldn’t formulate 2 questions out of 40 sentences in a decent way: “Please tell me which PHP routing system is better to start with” or in general “What is routing, why is it needed, where can I read about it?”, Then it’s better to read (! ) to start with questions from the series "Where to start learning web programming?"
Here are some more useful links: getjump.me/en-php-the-right-way
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question