Today suddenly found an important issue seems to face every day, but every day to ignore

Source: Internet
Author: User
Tags representational state transfer
Every day and object-oriented play, every day in the class to write methods Ah, and then write a routing rule, so that the address bar in the address is resolved!
Today, playing with a sudden thought, why in PHP after writing these rules, in the address bar after the input address, he can automatically invoke the written class and the method in the class?
Like Http://192.168.0.10/shop/index.php?act=show_joinin&op=index.
Of course, you may say this is providence, you may say, this is because PHP bottom of things decided, and of course, you may also say that this is not our concern, may also say, this may be the matter of scientists, not our fart, so good, I have to fight for you out, you do not have to reply!
Please return the person you are interested in.

In fact, sometimes think about, we are in a passive way to work, because we do not understand the truth, the time is long, we think it is understood, this is God-given, can not be violated, this is the creation of religion, but the reason why science has been developed, because no one think it is understanding of course, Otherwise, you're a religious person!


Reply to discussion (solution)

Religion also tells you why things are like this: because there is a god of XX.

Religion also tells you why things are like this: because there is a god of XX.


You're like a jerk.

In fact, the essence of this problem is the relationship between MVC and the HTTP protocol, there are a lot of rookie always think they will come up on how to answer, in fact, is exposed to ignorance but not honest nature!
In fact, the MVC pattern is evolving using the rules of the HTTP address bar,
With the evolution of architecture, there is now rest (representational state Transfer), a new style of support for HTTP specifications, not much here
You can refer to "RESTful Web Services".

Http://192.168.0.10/shop/index.php?act=show_joinin&op=index
does not automatically complete anything!
Web server values are responsible for index.php execution.
As for what index.php interprets the incoming parameter act=show_joinin&op=index, and what is done according to these parameters is determined by the code in index.php
So no God, only you!
Superstition is not religious, but it's dangerous.

Look at your index.php page, then look inside the page to see the role of the parameters passed in.


Religion also tells you why things are like this: because there is a god of XX.


You're like a jerk.


Don't try to pull my IQ to a level with you and then beat me with a lot of experience.

Landlord's problem also let me search the related issues, very good 、、、、、、、、、、、、、

Landlord's problem also let me search the related issues, very good 、、、、、、、、、、、、、


In fact, a lot of two fools only know what they said what he believed, never want to think why, as long as a think why and planing his home graves like, this is the nature of rookie!
  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.