You are on page 1of 8

School of Computing

Science and Engineering

Program: B. Tech
Course Code:BCSE3096
Course Name: Cloud Application
Development
School of Computing Science and Engineering
Course Code : BCSE3096 Course Name: CAD

CONFIGURING PHP (PHP.INI FILE)


• Editing php.ini file is most efficient and immediate way to affect
the PHP’s functionality. As php.ini file is read each time when
ever PHP is initialized in other words whenever our server is
restarted or whenever httpd is restarted.
• Location of php.ini: /etc/php5/apache2/php.ini

1) short_open_tag = off
• “<? ?>” these are called short open tags. And if you want to use
XML functions then you need to    set the “default value” to off.

Program Name: B.Tech


School of Computing Science and Engineering
Course Code : BCSE3096 Course Name: CAD

2) disable_functions=[function1, ……]
• PHP has the ability to disable selected functions for security
reasons.

Program Name: B.Tech


School of Computing Science and Engineering
Course Code : BCSE3096 Course Name: CAD

3) max_execution_time =30
• This will make the script time out in safe mode when the time
limit exceeds. In windows, script is aborted based on the memory
consumption rather than time.

Program Name: B.Tech


School of Computing Science and Engineering
Course Code : BCSE3096 Course Name: CAD

4) error_reporting =E_ALL & ~E_NOTICE

By default the value is to report all the errorit encounters and


should be remain as such.

Program Name: B.Tech


School of Computing Science and Engineering
Course Code : BCSE3096 Course Name: CAD

5) error_prepend_string = [“<font color = ff0000>”]


• This flag will print the error message in different colour then
normal text in the colour which you have specified in the flag.
You should set the flag value to the blink so that your eyes can
easily catch thee error message pho has encounter.

Program Name: B.Tech


School of Computing Science and Engineering
Course Code : BCSE3096 Course Name: CAD

6) variables_order = EGPCS
This will tell you the order of execution of the variables
that are Environment, GET, POST, COOKIE and
SERVER. (i.e. left to right).

Program Name: B.Tech

You might also like