The web_root directory

Author Topic: The web_root directory  (Read 438 times)

Offline chinmay.sahooTopic starter

  • Trade Count: (0)
  • Full Member
  • ***
  • Thank You 2
  • Posts: 139
  • Karma: 0
    • No Addiction
The web_root directory
« on: 05-26-2016, 03:36:20 »
To improve the security of a web application, the web server should only have direct access to the files that it needs to serve. As the Zend Framework uses the front controller pattern, all web requests are channeled though a single file, usually called index.php. This file is the only PHP file that needs to be accessible by the web server and so is stored in the web_root/ directory. Other common files that are accessed directly are images, CSS and JavaScript files, so each has their own sub-directory within the web_root directory.

Now that we have an overview of the directory system used by a Zend Framework website, we can proceed to add the files required to create a very simple application that displays some text on the page.


Related Topics

  Subject / Started by Replies Last post
0 Replies
Last post 09-25-2011, 05:41:05
by kirill
0 Replies
Last post 06-09-2012, 02:21:58
by claudia
0 Replies
Last post 10-17-2012, 23:28:11
by merrybolt
0 Replies
Last post 06-25-2013, 06:51:09
by dunikowski
1 Replies
Last post 08-26-2014, 13:07:32
by Aitugan