Answers for "get php code in browser"

PHP
1

php get browser

<?php
  echo $_SERVER['HTTP_USER_AGENT'];
  $browser = get_browser();
  print_r($browser);
?>
Posted by: Guest on March-20-2021
0

how to get php code from website

You can’t.

PHP is a server side language. That means, whenever you request 
content from any website built with php, the server will send 
the rendered content i.e. HTML, CSS and JS, 
that means all the PHP code is firstly rendered to HTML 
and then it is sent to your browser, that is why you see only 
the HTML, CSS and JS whenever you view the source of any webpage.

That’s why you cannot see the PHP code for any website.
Posted by: Guest on September-15-2021

Browse Popular Code Answers by Language