11.07.2015 Views

PHP MySQL - Stilson.net

PHP MySQL - Stilson.net

PHP MySQL - Stilson.net

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

CHAPTER 2• CONFIGURING YOUR ENVIRONMENTwww.it-ebooks.infoname=jason&email=jason%40example.comPaths and DirectoriesThis section introduces directives that determine <strong>PHP</strong>’s default path settings. These paths are used forincluding libraries and extensions, as well as for determining user web directories and web documentroots.include_path = stringScope: <strong>PHP</strong>_INI_ALL; Default value: NULLThe path to which this parameter is set serves as the base path used by functions such as include(),require(), and fopen_with_path(). You can specify multiple directories by separating each with asemicolon, as shown in the following example:include_path=".:/usr/local/include/php;/home/php"By default, this parameter is set to the path defined by the environment variable <strong>PHP</strong>_INCLUDE_PATH.Note that on Windows, backward slashes are used in lieu of forward slashes, and the drive letterprefaces the path:include_path=".;C:\php\includes"doc_root = stringScope: <strong>PHP</strong>_INI_SYSTEM; Default value: NULLThis parameter determines the default from which all <strong>PHP</strong> scripts will be served. This parameter isused only if it is not empty.user_dir = stringScope: <strong>PHP</strong>_INI_SYSTEM; Default value: NULLThe user_dir directive specifies the absolute directory <strong>PHP</strong> uses when opening files using the/~username convention. For example, when user_dir is set to /home/users and a user attempts to openthe file ~/gilmore/collections/books.txt, <strong>PHP</strong> knows that the absolute path is/home/users/gilmore/collections/books.txt.extension_dir = stringScope: <strong>PHP</strong>_INI_SYSTEM; Default value: ./ (on Windows, the default is ext)The extension_dir directive tells <strong>PHP</strong> where its loadable extensions (modules) are located. Bydefault, this is set to ./, which means that the loadable extensions are located in the same directory as theexecuting script. In the Windows environment, if extension_dir is not set, it will default to C:\<strong>PHP</strong>-INSTALLATION-DIRECTORY\ext\.34

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!