PHP

Want to support HowtoForge? Become a subscriber!
 

PHP number_format() and a problem with negative values rounded to zero

PHP number_format() and a problem with negative values rounded to Zero

As is known, the PHP function number_format() rounds the given value to the needed amount of decimal places.

Installing ehcp (Easy Hosting Control Panel) On Any Debian Or Apt-Get Based Distro, Including Ubuntu

Installing ehcp (Easy Hosting Control Panel) On Any Debian Or Apt-Get Based Distro, Including Ubuntu

In this tutorial I will show you howto install ehcp on any debian based distro, or any distro that has apt-get support. ehcp stands for Easy Hosting Control Panel. It may be used by anyone wanting to host multiple domains in his dedicated/vps server. It is a hosting control panel under development.

Decision Making Using PHP Switch Statement

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?

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.

XML feed
"Facebook" is a registered trademark of Facebook, Inc. All rights reserved.