Most sites which run a web server would like their web pages to be more intelligent than text and pictures. We have two choices when building a web service. Use computer programs to build custom-written web pages automatically, in response to a request for information.
Scripts are computer programming languages which can be used to embed programs into web pages.
By having a computer program generate a web page, tailor-made to a specific request for information, we can make much more intelligent pages, containing just the information a user wants. There is a huge number of scripting languages which can be used. The Apache server is designed in such a way that you can use any programming language to enhance your web service. This is a very popular language which is very good at understanding input and generating text. This is a language which can be embedded inside HTML code.