473,513 Members | 2,677 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Can't change Server...Need Help

1 New Member
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:

Name:  old-server.gif
Views: 71
Size:  3.9 KB
Root Directory
-Template folder
-w w w domain (dot) com
-web
-content
-Pages


My New web host has the following server setup:
Root Directory
Name:  new-server.gif
Views: 73
Size:  3.7 KB
-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,
Aug 15 '09 #1
0 1163

Sign in to post your reply or Sign up for a free account.

Similar topics

3
2863
by: Hmmm... | last post by:
I need to change the name of the SQL Server on my development machine. My client's server name is "Server1". My development server name is "MachineName1\ServerTest". I am writing a Visual Basic application. Everything is working great on my development system, but I have to go in a change the connection strings. Each time I change one,...
4
3884
by: J.C. Flores | last post by:
Hello all, First of all, I must state that I'm new to SQL Server, but have been a long-time software guy for quite some time. Please excuse the potential simplicity of the solution to my problem. I create a blank database (TestDB) under my server machine (SQL Server 2000 Standard)... I then create a new table (Run_Number) with only one...
0
2996
by: Andy Eshtry | last post by:
I have a radio button list, a textbox representing SIN or EIN based on my radio button list selection so I put 2 regularexpressionvalidator to evaluate the value of textbox. EIN must be (for simplicity) with this format (2 digits) like 12 (ValidationExpression="\d{3}-\d{2}") and SIN must be (for simplicity) with this format ...
6
8549
by: Saya | last post by:
Hello, This is a repost 'cause I haven't solve the problem: I can't use the System.Drawing class 'Image.FromStream' in the CompactFramework environment. What I've done with respect to Brendan's suggestion is as follows: Brendan, thanks for the reply! I'm a little bit further now, but not yet finished. I've come this far, see code below:...
3
11100
by: Wysiwyg | last post by:
After a server created cookie is processed on the client I want it removed, cleared, or expired in the javascript block but have been unable to do this. If I set a cookie value in the server code behind and don't use a domain then I can not change or remove that cookie's value on the client. If I subsequently create the cookie again in the...
6
4843
by: scottyman | last post by:
I can't make this script work properly. I've gone as far as I can with it and the rest is out of my ability. I can do some html editing but I'm lost in the Java world. The script at the bottom of the html page controls the form fields that are required. It doesn't function like it's supposed to and I can leave all the fields blank and it still...
11
26530
by: cybervigilante | last post by:
I can't seem to change the include path on my local winmachine no matter what I do. It comes up as includ_path .;C:\php5\pear in phpinfo() but there is no such file. I installed the WAMP package and PEAR is in c:\wamp\php\pear I modified php.ini in the c:\wamp\php directory to reflect the actual path, but even stopping and restarting my...
15
1576
by: jim | last post by:
I have a user that uses a built-in wireless ethernet card to connect to our wireless router and surf the internet from behind our router and uses a wireless Sprint card to connect to the internet when not in the office. I need to be able to detect when he is connected from the office and when he is connected via the Sprint card. ...
1
1205
by: pbd22 | last post by:
Hi. I have been asked to do a rather odd thing by my employer. I have to add a new feature to an old project that "should not know about the change". This is a bit of an odd request but just assume that my reasons for doing what I need to do cannot change. Assume that I need to add a list box to the pre-existing project page that uses some...
0
7269
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7177
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7559
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
5100
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3248
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3237
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1611
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
811
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
470
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.