PHP

Want to support HowtoForge? Become a subscriber!
 

How to Set Up The Basic Apache Config For Virtual Hosts on CentOS 6

How to Set Up Apache Virtual Hosts on CentOS 6

Virtual Hosts are required in order to run multiple domains off a single IP address. Creating virtual host is expressly helpful for users who wish to run numerous sites using one virtual private server (VPS). Typically, each server is distinctly defined by it's domain/hostname. To the utter delight of users, there does not exist an upper limit to the number of virtual hosts that may be added to a VPS.

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.