Archive for the ‘PHP’ Category

$1 Hosting- Expertly Engineered As Managed Hosting And Email Solution

It doesn’t matter what kind of business you are running and for how long, what matters the most is what exactly you have done to flourish your business. What about your business website? Are you able to make up the same using ultimate plans and packages? NO? You are committing a very silly mistake which […]

Trust On MyTrueHost For $1 Web Hosting And Other Plans

We all love to see our website again and again but how will you feel if your website doesn’t respond well when you try to open the same? Well, surely you will be disappointed and will be in trouble. Isn’t it? Similarly, your potential or existing clients will also be very upset if your website […]

Engaging Cheap Web Hosting Services Helps Business Growth

When the internet was introduced in the last century, nobody envisaged that the way we do business will be changed so drastically.  The old way of advertising in the newspapers and putting billboards is passé; the new way is to set up a dedicated website to attract casual visitors and prospective customers. Though many budding […]

Hardening PHP for Security

Hardening PHP for Security PHP is the most popular scripting language for apache and mysql. You will need to disable system level functions in the php configuration file. Suhosin Suhosin is an advanced protection system for PHP installations. It was designed to protect your servers on the one hand against a number of well known […]

Secure Joomla site.

To avoid Joomla site to be hacked follow the following steps. Disable RG_EMULATION for Joomla. When this option is enabled even the latest Joomla is vulnerable to some variable injections. It can be disabled by placing the following line in your configuration.php: if(!defined(‘RG_EMULATION’)) { define( ‘RG_EMULATION’, 0 ); } ————- Secure your administrator’s area. This […]

user_password_dynamic_validation() error while installing Drupal 6.15

I have faced a big problem while installing Drupal. I am receiving following error message [Sun Feb 28 10:00:20 2010] [error] [client 127.0.0.1] PHP Fatal error: Call to undefined function _user_password_dynamic_validation() in /usr/share/drupal/install.php on line 710, referer: http://localhost/drupal/install.php? profile=default&localize=true To resolve above issue we need to manually update the table values From shell run following […]

Joomla “Not a valid image” issue

While uploading images we are receiving “Not a valid image” error message. To resolve error message refer following steps. First login into Joomla admin section and check box following option. Global Config > System – restrict uploads = No – check mime types = No Second edit configuration.php file and change. From var $ftp_enable = […]

Joomla “404 component error”

While browsing Joomla site “404 component error” message refer following steps to resolve issue. Login into Joomla admin section Then select Menus >> Menu Item Manager Check box “Home” option from list and then only click on the YELLOW star icon in the upper-right corner. Now browse your site and if you are still having […]

Magento “Fatal error: Undefined class constant ‘XML_PATH_USE_CUSTOM_ADMIN_URL’ “

After upgrading the Magento mostly the following error is occurred. Fatal error: Undefined class constant ‘XML_PATH_USE_CUSTOM_ADMIN_URL’ in /home/test123/public_html/app/code/core/Mage/Core/Controller/Varien/Router/Admin.php on line 123 Solution : To resolve the above error refer the following steps. 1st take backup for the file /app/code/core/Mage/Adminhtml/helper/Data.php 2nd) Change the following line in the file /app/code/core/Mage/Adminhtml/helper/Data.php   From class Mage_Adminhtml_Helper_Data extends Mage_Core_Helper_Abstract {protected $_pageHelpUrl; To class Mage_Adminhtml_Helper_Data extends Mage_Core_Helper_Abstract {const XML_PATH_ADMINHTML_ROUTER_FRONTNAME   = ’admin/routers/adminhtml/args/frontName’; const XML_PATH_USE_CUSTOM_ADMIN_URL         = ’default/admin/url/use_custom’; […]

Simple php script to check database connection

To check the database connection script you can use following code under your domain <?php mysql_connect(“localhost”, “admin”, “1admin”) or die(mysql_error()); echo “Connected to MySQL<br />”; mysql_select_db(“test”) or die(mysql_error()); echo “Connected to Database”; ?> After browsing the database connection script you will see following content if database connect to your server. Connected to MySQL Connected to […]