Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
The Apache Web Server
#1
There’s actually a fourth hero in the dynamic Web, in addition to our triumvirate of PHP, MySQL, and JavaScript: the web server. In the case of this book, that means the Apache web server. We’ve discussed a little of what a web server does during the HTTP server/client exchange, but it actually does much more behind the scenes.

For example, Apache doesn’t serve up just HTML files—it handles a wide range of files, from images and Flash files to MP3 audio files, RSS (Really Simple Syndication) feeds, and so on. To do this, each element a web client encounters in an HTML page is also requested from the server, which then serves it up.

But these objects don’t have to be static files such as GIF images. They can all be generated by programs such as PHP scripts. That’s right: PHP can even create images and other files for you, either on the fly or in advance to serve up later.

To do this, you normally have modules either precompiled into Apache or PHP or called up at runtime. One such module is the GD library (short for Graphics Draw), which PHP uses to create and handle graphics.

Apache also supports a huge range of modules of its own. In addition to the PHP module, the most important for your purposes as a web programmer are the modules that handle security. Other examples are the Rewrite module, which enables the web server to handle a varying range of URL types and rewrite them to its own internal requirements, and the Proxy module, which you can use to serve up often-requested pages from a cache to ease the load on the server.
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  FTP server RH-Calvin 0 1,771 08-04-2020, 07:47 PM
Last Post: RH-Calvin
  What is Server-Side Includes (SSI)? beingchinmay 0 2,710 01-28-2016, 02:18 PM
Last Post: beingchinmay

Forum Jump:


Users browsing this thread: 1 Guest(s)