Web design software and server change problem!

2 posts by 2 authors in: Forums > CMS Builder
Last Post: April 4   (RSS)

By richo - April 4

I have recently changed server. When using CMS builder before the server change I would use for example: 

<?php
require_once "/home/sites/theatremusicshop.com/public_html/cmsAdmin/lib/viewer_functions.php";

list($mp3Records, $mp3MetaData) = getRecords(array(
'tableName' => 'mp3',
'orderBy' => 'title asc',
'allowSearch' => '0',
'where' => "duo duet_tracks='yes'",
'perPage' => '250',
));

?>

Now it has changed to:

<?php require_once "/home/sites/30b/5/5c4a52752c/public_html/cmsAdmin/lib/viewer_functions.php";
list($mp3Records, $mp3MetaData) = getRecords(array(
'tableName' => 'mp3',
'orderBy' => 'title asc',
'allowSearch' => '0',
'where' => "comedy_tracks='yes'",
'perPage' => '250',
));

My software will not allow search and replace for over 100 pages!

I will have to go through each page and make the change but how can I future proof it in case I change server again please?

Maybe have one file to include the new server <?php require_once "/home/sites/30b/5/5c4a52752c/public_html/cmsAdmin/lib/viewer_functions.php";

Change

<?php require_once "/home/sites/theatremusicshop.com/public_html/cmsAdmin/lib/viewer_functions.php";

to 

<?php require_once "/home/sites/30b/5/5c4a52752c/public_html/cmsAdmin/lib/viewer_functions.php";

Any help would be appreciated.

Thank you.

John