Every newbie want to know about PHP role in web designing and keen to that how its wotk? Basically PHP is acronym for Personal Home Pages, but is now known as a recursive acronym for PHP: Hypertext Preprocessor. It is invented by Danish Greenlander Rasmus Lerdorf and then developed as open source technology. Its a scripting language which can combine with html tags and have an file extension .php for every server side pages.PHP compilation take place at server and generate runtime HTML response for client.Its a very light weight scripting as compare to other web programming languages. PHP has the enviable brand in Web World in a very short time.
When a website request is send to web server for a PHP page than first server analyze the web page and compile the scripting part of dynamic page as per instructions and generate the desire HTML output and send it to browser.HTML Design part will be compile on client side by Web Browsers. We always receive only HTML tags and text at client side in response of PHP page from hosted Server.PHP coding never shown on clients computer.
To learn php you don't need to be online.. ,you can create a web server on your local computer by installing xampp server or Wamp server on your local machine.These software come with combination of Apache Web Server and MySQL Database Server.By installing these softwares your computer will work as a Web Server and you can host your web site on it's root location like htdocs folder in xampp or www folder in Wamp.