11.07.2015 Views

PHP MySQL - Stilson.net

PHP MySQL - Stilson.net

PHP MySQL - Stilson.net

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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

CHAPTER 2• CONFIGURING YOUR ENVIRONMENTwww.it-ebooks.info■ Caution Although the <strong>PHP</strong> documentation still refers to the default values associated with each directive, thereorganization of the php.ini file into two separate versions, php.ini-development for development purposes,and php.ini-production for production purposes, renders the meaning of “default” context-dependent. In otherwords, the default value of many directives found in the version of php.ini you choose will be set differently thanthe same value as defined in the other php.ini file. Therefore, in the interests of practicality, I am going to breakfrom convention and identify the default value as that used within the php.ini-development file.engine = On | OffScope: <strong>PHP</strong>_INI_ALL; Default value: OnThis parameter is responsible for determining whether the <strong>PHP</strong> engine is available. Turning it offprevents you from using <strong>PHP</strong> at all. Obviously, you should leave this enabled if you plan to use <strong>PHP</strong>.zend.ze1_compatibility_mode = On | OffScope: <strong>PHP</strong>_INI_ALL; Default value: OffSome three years after <strong>PHP</strong> 5.0 was released, <strong>PHP</strong> 4.X is still in widespread use. One of the reasonsfor the protracted upgrade cycle is due to some significant object-oriented incompatibilities between<strong>PHP</strong> 4 and 5. The zend.ze1_compatibility_mode directive attempts to revert several of these changes in<strong>PHP</strong> 5, raising the possibility that <strong>PHP</strong> 4 applications can continue to run without change in version 5.■ Note The zend.ze1_compatibility_mode directive never worked as intended and was removed in <strong>PHP</strong> 5.3.0.short_open_tag = On | OffScope: <strong>PHP</strong>_INI_ALL; Default value: Off<strong>PHP</strong> script components are enclosed within escape syntax. There are four different escape formats,the shortest of which is known as short open tags, which looks like this:You may recognize that this syntax is shared with XML, which could cause issues in certainenvironments. Thus, a means for disabling this particular format has been provided. Whenshort_open_tag is enabled (On), short tags are allowed; when disabled (Off), they are not.asp_tags = On | OffScope: <strong>PHP</strong>_INI_ALL; Default value: Off<strong>PHP</strong> supports ASP-style script delimiters, which look like this:22

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

Saved successfully!

Ooh no, something went wrong!