PHP

Decision Making Using PHP Switch Statement

Submitted by haroon (Contact Author) (Forums) on Thu, 2007-01-25 11:00. :: PHP | PHP

Decision Making Using PHP Switch Statement

Today I am going to discuss Switch Statement. The basic concept of Switch is similar to the IF-ELSE statement; it helps you to write decision making code just like IF-ELSE but it is a little more organized, elegant and handy when dealing with complex logics as compare to IF-ELSE.

I'd like to disable the use of the exec() function in my PHP. Can this be done?

Submitted by falko (Contact Author) (Forums) on Mon, 2006-08-07 16:31. :: PHP
Yes, you can disable it in your php.ini. Search for the line

disable_functions =

and change it:

disable_functions = exec

Don't forget to restart Apache afterwards.