Hi,
I had a website designed by a designer so time back. Now I need to make a couple of changes to the site and I can't contact my Designer. Can anyone help?
Problem 1:
I have to change the server. The Config file has the following script:
#doccument root - no trailing slash
$docroot = substr($_SERVER['SCRIPT_FILENAME'],0,strpos($_SERVER['SCRIPT_FILENAME'],'/www.'));
#include master config
require($docroot.'/template/config.php');
The server set up is the following:
Root Directory
-Template folder
-w w w domain (dot) com
-web
-content
-Pages
My New web host has the following server setup:
Root Directory
-htdocs
-template (thats what I think where I can place it)
-mydomain
-htdocs
-mypages (including config.php which holds the above script)
Can anyone tell me how do I need to make the change to the server address?
Problem 2:
The page design was set up to redirect ads based on website domain names. Here is an example:
----------------------------------------------------------------------------------------
$this_domain = str_replace('www.','',$_SERVER['SERVER_NAME']);
switch($this_domain){
/*
#each domain should be set up as follows. Copy and paste from Start to End and paste it before "default:" and then edit it for the domain you are setting up.
#Start [domainname]
case '[domainname]':
$wideskyscraper = '
';
$mpuads = '
';
$ad300x600 = '
';
$leaderboard = '
';
break;
#End [domainname]
*/
-------------------------------------------------------------------------------------
I want to get this script to redirect ads based on pages rather than domains like about.php or games.php, for a domain as well as redirect ads to subdomains like games.domain.com
Can anyone help?
Thanks,