/ Published in: PHP
                    
                                        
Substitute new_ placeholder in the second line with your new prefix.  Run it: http://www.yoursite.com/rename.php and wait until it responds with an OK, usually after a couple of seconds.  Delete the rename.php script.  Edit the configuration.php file and find the line starting with var $dbprefix. It should look like this:  var $dbprefix = \'jos_\';  Replace the old jos_ prefix with new prefix, i.e. the one used in the second line of your rename.php script.
                
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
<?php
$new_prefix = 'new_';
require_once 'configuration.php';
$config = new JConfig;
$prefix = $config->dbprefix;
$sql = "show tables where `Tables_in_{$config->db}` like '{$prefix}%'";
{
$old = $row[0];
}
echo "OK";
?>
URL: http://magazine.joomla.org/topics/item/108-the-prefix-has-nothing-to-do-with-telephony
Comments
 Subscribe to comments
                    Subscribe to comments
                
                