What is PHP and how does it work?
Table of Contents
What is PHP and how does it work?
PHP is a server side scripting language. that is used to develop Static websites or Dynamic websites or Web applications. PHP stands for Hypertext Pre-processor, that earlier stood for Personal Home Pages. PHP scripts can only be interpreted on a server that has PHP installed.
What mean PHP?
PHP: Hypertext Preprocessor
PHP is a general-purpose scripting language geared towards web development. PHP originally stood for Personal Home Page, but it now stands for the recursive initialism PHP: Hypertext Preprocessor.
What platform is PHP running on?
PHP has cross-platform applications, running on Windows, Linux, Unix, Mac OS X, and an array of other supported operating systems. It’s compatible with nearly all modern servers (e.g. Apache, IIS, etc.)
Why does PHP need a server?
Your browser cannot Run PHP code like HTML,CS, JavaScript. Hence you need a server that has PHP installed on it,that will run the code. And PHP was designed to be a Server-side language, whereas HTML,CSS,JS, are client side languages. Hence PHP needs a server.
How does PHP compiler work?
PHP is compiled down to an intermediate bytecode that is then interpreted by the runtime engine. The PHP compiler’s job is to parse your PHP code and convert it into a form suitable for the runtime engine.
Why PHP is called server side scripting language?
PHP is server side language because php requires server to run a code. Code of php get executed on server and result of execution is return to the browser. thats why php is called script language and server side language.
Can PHP run on different platforms?
PHP runs on various platforms (Windows, Linux, Unix, Mac OS X, etc.) PHP is compatible with almost all servers used today (Apache, IIS, etc.)
How does Facebook use PHP?
Facebook technology stack consist of application written in many language, including PHP and many others. Facebook still using PHP but it has built a compiler for it so it can be turned into native code on. Facebook doesn’t use PHP for its core system, at Facebook, they uses C++ heavily on back end system.