Most Rated Articles

Installing Apache and Apache Modules the easy way

The Essential steps on how to Sysprep Windows 7

SSH is very much similar to telnet. SSH is a shell program which allows a user remote access and the ability to execute commands over a network.

It is important to protect your wireless networks from unwanted and abusive users. Unauthorized users may reduce the bandwidth and may lock up your network

There are many methods on how to optimize apache. It could be on the software side, but upgrading the hardware also makes a difference.

With Windows 7 as a new OS in the market, one may worry about any problems that could be encountered especially network issues such as compatibility with older OS. Windows 7 might encounter problems communicating with older Windows models such as XP. The following are ways on how to network Windows 7 and XP.

One way of installing windows over the network is through the use of RIS or Remote Installation Services. However, you must have the following prerequisites in order to install Windows over the network.

Installing a printer on a mac is just as easy as installing a printer on an OS of Windows. The following steps are just some of the steps on how to connect your printer a Mac operating system.

Nowadays, it is important to have access to Wi-Fi. However, not everyone has their own internet connection so most people leech wherever there is free Wi-Fi. Most routers with Wi-Fi access require passwords but nowadays, there are other places to look around and search for free Wi-Fi.

Some applications cannot install in Windows 7 due to incompatibility issues. A solution would be to enable XP mode in a virtual environment of Windows 7. This configuration may be used to run and install programs that were incompatible in Windows 7.

Programming  »  PHP
 Picture

How to display PHP errors

By: Jerry Slagger
Date Added : June 19, 2009 Views : 3016




There are essentially three ways to enable php error reporting. You can turn error reporting on in the .htaccess file, the php.ini file, or in the PHP script itself.

PHP error reporting should be turned off on production websites to help assure the security of the site. If you are trouble shooting some script changes then you would want to enable it for just the site you are working on. To do this, set the php_value display_errors in the .htaccess file for that site.

Add the following to your .htaccess file:

php_value display_errors 1
php_value display_startup_errors 1

If you do not have access to the .htaccess you can enable the error reporting from the PHP script by adding the ini_set directives to the beginning of the script.

// Display PHP Errors
ini_set('display_errors', 1);
error_reporting(E_ALL);

If you are working on a development server or want to display the errors for all websites on a server you can set display_errors to on in the php.ini file.

display_errors On


Adding the display errors directive to the .htaccess is probably the easiest way to get the php phase errors to display for a single site. Some developers like to add the ini_set function to their scripts so they can enable or disable debugging from the script it's self. I find this to be my preference.





Article Categories