PHP - opening/closing

Asked

Viewed 72 times

1

Hello. Can anyone explain to me why the facebook site (and many other sites) do not have php open/close tags? I know they use php.

  • 3
  • 3

    It’s not that you don’t see it. PHP works on the server side, it processes requests and returns only an HTML pro browser.

  • 1

    @Everson Duplicada????

  • @LINQ verified the answer? https://answall.com/a/31913/57801 fits the question. And another thing, Facebook has developed its own language that is Hack , can be checked at http://hacklang.org/

  • @Everson What the answer has to do with PHP code not appearing in the client-side?

  • @LINQ at which point is defined that the problem is in "client-side", the problem is described in 2 lines. And being "possible duplicate" means that it may or may not be a duplicate. That by community rules will be checked by a supervisor.

  • 1

    @Everson The only reason tags don’t appear in the browser is because they aren’t rendered in the client-side, for obvious reasons. Note that the question is his is "why don’t you have the tags openness and closing". That is, he is trying to see the code by the browser and obviously does not find the tags. On the "possible" duplicate, I know how the system works and, for the record, no supervisor needs to confirm anything, if 5 people vote to close the question will be closed.

  • @Guilhermenascimento Yes, your answer is more correct. The problem is in understanding the problem. I appreciate your help.

  • PHP runs in the back end processes and delivers via "reply/download" only html, it is not possible to read php via browser, it is only on the server and gives you what you want, read this: https://answall.com/a/168915/3635 and https://answall.com/a/177050/3635

  • @LINQ not only tags, but all content is not displayed. But as I said, 2 lines do not describe the problem itself.

Show 5 more comments

1 answer

1

The PHP opening and closing tags are processed on the server. When you view the source of a page made in PHP via the browser, these tags will never be displayed.

  • I get it. Thank you. It’s just that the tags didn’t appear on any site. It seems I still have a lot to learn, eheh.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.