Solved

How to connect PHP Pages through session start.

Posted on 2008-06-23
29
388 Views
Last Modified: 2013-12-12
We are on a phase of transferring the website and database from an old webhost to a new one, now in the transition stage i am getting few errors on MYSQL and PHP, i am pasting the errors, hopefully someone can help me out.
Right now i have a test link provided by netregistry which is http://rere6659.staging-zeus.netregistry.net/
, on the Support Centre page when i enter my User details, it doesnt carry it through to the next page, i have to sign in again, its a session start issue, i have tried including session start before the start of PHP function, on every page where its required and and after the php session starts, but none of this is working.
<?php // access.php

 

include_once 'common.php';

include_once 'db.php';

session_start();

 

// Make Changes here, took out session_start() which was generating the error

 

$uid = isset($_POST['uid']) ? $_POST['uid'] : $_SESSION['uid'];

$pwd = isset($_POST['pwd']) ? $_POST['pwd'] : $_SESSION['pwd'];

 

if(!isset($uid)) {

	?>

	

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

 

<!-- Site Copyright 2006 Response Systems -->

 

<head>

	<meta name="author" content="Hadley Grindrod" />

	<meta http-equiv="content-type" content="text/html;charset=iso-8859-2" />

	<link rel="stylesheet" href="../../style.css" type="text/css" />

	<title>Response Systems :: Support Centre</title>

</head>

 

<!-- Begin Site Body -->

 

<body>

	<div class="content">

	

	<!-- Begin Header Section -->

	

		<div class="header_top"></div>

		<div class="header">

		

		<!-- Begin Navigation Bar -->

		

			<div class="header_right">

				<div id="nav">

    				<p><a href="../../solutions/">Solutions</a> | <a href="../">Support</a> | <a href="../../links/">Links</a> | <a href="../../contact/">Contact</a></p>

				</div>

				<div class="header_search">

					<form method="get" action="http://response-systems.com/cgi-bin/search/search.pl">

						<p><input type="text" name="Terms" class="search" /> <input type="submit" value="Search" class="submit" /></p>

					</form>

				</div>

			</div>

			

		<!-- Begin Logo Placement -->

			

			<div class="header_left">

				<a href="../../"><img src="../../images/responselogo.jpg" alt="Home" /></a>

			</div>

		

	<!-- Finish Header Section -->	

			

		</div>

		

		<div class="header_bottom"></div>

		<div class="spacer"></div>

		

	<!-- Begin Content Area -->

		

		<div class="header_top"></div>

		

		<!-- Column 1 : Left : Log In -->

		

		<div class="column">

			<div class="box_top">

				<h2>Log In:</h2>

			</div>	

			<div class="box">

			  	<form method="post" action="<?=$_SERVER['PHP_SELF']?>">

			    	<h1>Username</h1>

			       	<h1><input type="text" name="uid" class="user" /></h1>

			       	<h1>&nbsp;</h1>

			       	<h1>Password</h1>

					<h1><input type="password" name="pwd" class="pass" /></h1>

		      		<h1><input type="submit" value="Log In" name="login" class="login" /></h1>

					<p><a href="password.php">Forgotten Your Login?</a></p>

				</form>

			</div>

			<div class="box_bottom"></div>

		</div>

		

		<!-- Column 2 : Right : Content -->

		

		<div class="column2">

			<h2>Support Centre</h2>

			<p>Welcome to the Response Systems Support Centre. Log in for access to Downloads, Updates, and Support Requests. Please check first to make sure that your question hasn't already been answered by checking our <a href="http://www.response-systems.com/cgi-bin/knowledgebase/search.pl?Terms=articles">knowledgebase</a>.</p>

			<p>For system requirements or latest release information, please go to the <a href="../../solutions/">Solutions</a> section and select the product you which to check.</p>

			<p><a href="apply/">Click here to apply for access to the Support Centre.</a></p>

		</div>

		

	<!-- Finish Content Area -->

		

		<div class="header_bottom"></div>

		

	<!-- Begin Footer -->

		

		<div class="language">

			<a href="../../fr/"><img src="../../images/Language/France.png" alt="French" /></a>

			<a href="../../de/"><img src="../../images/Language/Germany.png" alt="German" /></a>

			<a href="../../es/"><img src="../../images/Language/Spain.png" alt="Spanish" /></a>

		</div>

		<div class="footer">

			<p><a href="../../about/">About Response Systems</a> | <a href="../../privacy/">Privacy</a> | <a href="../../enquiry/">Feedback</a> | <a href="../../contact/">Contact</a><br />

			&copy; Copyright 2006 Response Systems</p>

		</div>

	</div>

</body>

</html>

 

<?php

 

	exit;

}

 

$_SESSION['uid'] = $uid;

$_SESSION['pwd'] = $pwd;

 

dbConnect("rs_response_systems_com");

$sql = "SELECT * FROM users WHERE user = '$uid' AND pass = '$pwd'";

$result = mysql_query($sql);

 

if (!$result) {

	error('A database error occurred while checking your login details.\\nIf this error persists, please contact the webmaster');

}

 

if (mysql_num_rows($result) == 1 && isset($_POST['login'])) {

	$count = mysql_result($result,0,"count");

	$count++;

	$date = date("y,m,d");

	$query = "UPDATE users SET count ='$count', last = '$date' WHERE user = '$uid'";

	mysql_query($query);

}

 

if (mysql_num_rows($result) == 0) {

	unset($_SESSION['uid']);

	unset($_SESSION['pwd']);

	

?>

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

 

<!-- Site Copyright 2006 Response Systems -->

 

<head>

	<meta name="author" content="Hadley Grindrod" />

	<meta http-equiv="content-type" content="text/html;charset=iso-8859-2" />

	<link rel="stylesheet" href="../../style.css" type="text/css" />

	<title>Response Systems :: Support</title>

</head>

 

<!-- Begin Site Body -->

 

<body>

	<div class="content">

	

	<!-- Begin Header Section -->

	

		<div class="header_top"></div>

		<div class="header">

		

		<!-- Begin Navigation Bar -->

		

			<div class="header_right">

				<div id="nav">

    				<p><a href="../../solutions/">Solutions</a> | <a href="../">Support</a> | <a href="../../links/">Links</a> | <a href="../../contact/">Contact</a></p>

				</div>

				<div class="header_search">

					<form method="get" action="http://response-systems.com/cgi-bin/search/search.pl">

						<p><input type="text" name="Terms" class="search" /> <input type="submit" value="Search" class="submit" /></p>

					</form>

				</div>

			</div>

			

		<!-- Begin Logo Placement -->

			

			<div class="header_left">

				<a href="../../"><img src="../../images/responselogo.jpg" alt="Home" /></a>

			</div>

		

	<!-- Finish Header Section -->	

 

		</div>

		

		<div class="header_bottom"></div>

		<div class="spacer"></div>

		

	<!-- Begin Content Area -->

		

		<div class="header_top"></div>

		

		<!-- Column 1 : Left : Log In -->

		

		<div class="column">

			<div class="box_top">

				<h2>Log In:</h2>

			</div>	

			<div class="box">

			  	<form method="post" action="<?=$_SERVER['PHP_SELF']?>">

			    	<h1>Username</h1>

			       	<h1><input type="text" name="uid" class="user" /></h1>

			       	<h1>&nbsp;</h1>

			       	<h1>Password</h1>

					<h1><input type="password" name="pwd" class="pass" /></h1>

		      		<h1><input type="submit" value="Log In" class="login" /></h1>

					<p><a href="#">Forgot Your Password?</a></p>

				</form>

			</div>

			<div class="box_bottom"></div>

		</div>

		

		<!-- Column 2 : Right : Content -->

		

		<div class="column2">

			<h2>Support Centre</h2>

			<p>The login details you supplied are incorrect. Please try again.</p>

			<p><a href="apply/">Click here to apply for access</a></p>

		</div>

		

	<!-- Finish Content Area -->

		

		<div class="header_bottom"></div>

		

	<!-- Begin Footer -->

		

		<div class="language">

			<a href="../../fr/"><img src="../../images/Language/France.png" alt="French" /></a>

			<a href="../../de/"><img src="../../images/Language/Germany.png" alt="German" /></a>

			<a href="../../es/"><img src="../../images/Language/Spain.png" alt="Spanish" /></a>

		</div>

		<div class="footer">

			<p><a href="../../about/">About Response Systems</a> | <a href="../../privacy/">Privacy</a> | <a href="../../contact/">Contact</a><br />

			&copy; Copyright 2006 Response Systems</p>

		</div>

	</div>

</body>

</html>

 

<?php

	exit;

}

?>

Open in new window

0
Comment
Question by:usmansultan
  • 15
  • 7
  • 6
  • +1
29 Comments
 
LVL 1

Author Comment

by:usmansultan
ID: 21844138
if i take out session start from line 5 it gives this error;
"Fatal error: session_start() [<a href='function.session-start'>function.session-start</a>]: Failed to initialize storage module: user (path: /tmp) in /clientdata/clients/r/e/response-systems.com/www/support/centre/access.php on line 5"
0
 
LVL 36

Expert Comment

by:Loganathan Natarajan
ID: 21844247
session_path is configured and have permission to store?
0
 
LVL 29

Expert Comment

by:fibo
ID: 21844474
1 - As a routine, I would prefer to write lines 1-5 as
<?php // access.php
session_start();
include_once 'common.php';
include_once 'db.php';

Writing session_start as the first instruction is rarely a bad option, and certainly a good idea if later your included file generate some html code (eg, a space before the <?php)

2 - And lines 13-15 as
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
(defensive - not really sure it helps)

3 - Check that your php script
- has no character (space, empty line...) before <?php
- has the expected text encoding (if your php script is encoded as UTF8 but your server reads it as a regular ASCII, the server will "read" additional characters before the <? )
0
 
LVL 108

Expert Comment

by:Ray Paseur
ID: 21844859
usmansultan: Couple of things may help.

First, make your life easy by putting a standard "startup" line on EVERY page of your site.  I use this.  The config script brings together all the pieces I need to create a web page - authentication, local functions, db connections, etc.

Next, run phpinfo() and look a the output for sessions.  

I'll post another script for you to run. ~Ray
require_once('/_config.php');

Open in new window

0
 
LVL 108

Accepted Solution

by:
Ray Paseur earned 300 total points
ID: 21844877
Put this on your server and run it.  If it doesn't increment the Session Variable when you click submit, your server is not processing sessions correctly.  Take the script and the output from phpinfo() and make a call to tech support.  But before you do that, make sure you are invoking session_start() as the first statement on EVERY page of your site.  Good luck, ~Ray
<?php

session_start();

if (isset($_POST[submit])) {

	if(!isset($_SESSION['cheese'])) {

		$_SESSION['cheese'] = 1;

	} else {

		$_SESSION['cheese']++;

	}

}

?>

<html><head><title>Session Test</title></head>

<body>

Current Session Variable value is: <?= $_SESSION['cheese'] ?> <br/>

<form method="post">

<input type=submit value=click name=submit>

</form>

</body>

</html>

Open in new window

0
 
LVL 1

Author Comment

by:usmansultan
ID: 21851555
Sorry guys, i left the job when i asked this question, so i was not able to respond to any one of your questions.Anyways i have started working on it, and will reply to you back soon, as soon as i have an error :-)
0
 
LVL 1

Author Comment

by:usmansultan
ID: 21852111
The suggestion from fibo didnt work.
Ray the script that you have given me, should i put that script instead the one that i have provided,means take out my script and paste that one in.
Secondly "require_once('/_config.php');" should i put this script on all the pages of the website or on the pages where it requires authentication.
0
 
LVL 108

Expert Comment

by:Ray Paseur
ID: 21852146
usmansultan: For now, just try to run the script that has all this in it.  Don't worry about _config -- it needs a lot of customization.  Let's make sure you have a working PHP server.
<?php

session_start();

if (isset($_POST[submit])) {

	if(!isset($_SESSION['cheese'])) {

		$_SESSION['cheese'] = 1;

	} else {

		$_SESSION['cheese']++;

	}

}

?>

<html><head><title>Session Test</title></head>

<body>

Current Session Variable value is: <?= $_SESSION['cheese'] ?> <br/>

<form method="post">

<input type=submit value=click name=submit>

</form>

</body>

</html>

Open in new window

0
 
LVL 1

Author Comment

by:usmansultan
ID: 21852361
I took out my script and pasted yours in, it generated this error.
Fatal error: session_start() [<a href='function.session-start'>function.session-start</a>]: Failed to initialize storage module: user (path: /tmp) in /clientdata/clients/r/e/response-systems.com/www/support/centre/access.php on line 2

Also it took out the db connection, means under Anouncement tab, it was saying database is down, i had a database problem which was fixed, you can view that question on
http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/PHP/PHP_Databases/Q_23455399.html
It will give you more idea of how everything started.
Thanks.
0
 
LVL 29

Expert Comment

by:fibo
ID: 21852885
Seems that the session mechanism cannot write its files where it wants to.
1 - Check that you have a /tmp directory, since this seems to be a problem
2 - check that this directory is chmod 777 so that there are no problem with creating files there
3 - [unrelated to your problem, but necessary after the previous steps] put in tmp an empty file named index.htm [so that it is not possible to explore this widely open directory]
0
 
LVL 1

Author Comment

by:usmansultan
ID: 21852939
There is a tmp directory under the root folder but the last time it was accessed was on 4th of june, when i transferred this website across.
How can i check that this directory is chmod 777.
i have placed an empty index.html file under tmp directory.
0
 
LVL 1

Author Comment

by:usmansultan
ID: 21852983
The path in the error message "/clientdata/clients/r/e/response-systems.com/www/support/centre/access.php"what  does this mean, is it trying to intialize storage module from the old website host path?
Because as i have mentioned i am transferring the website to a new host, so do i have to change the path.
Also how can i check that this dirctory (i.e. tmp) is chmod777
0
 
LVL 108

Expert Comment

by:Ray Paseur
ID: 21854830
usmansultan: You should be able to get some help from the people who run the server installation.  Take them these error messages (print this page) and show them what is happening.  You have enough diagnostic information here that a knowledgeable sysadmin will recognize and correct the issues immediately.  Let's start by making sure you can use PHP sessions.  Have the sysadmin do as fibo suggests about an empty index.htm file.  That will get you past the issue you identified in your OP.  Then if there are other issues we can look at them separately.  HTH, ~Ray
0
 
LVL 29

Expert Comment

by:fibo
ID: 21858674
Sorry "chmod 777" is a shortcut about rights.
It says that for the owner of the file (leftmost digit), for the usergroup where it belongs (middle digit) and for all users (rightmost users) the access rights to the directory are Read (4) + Write (2) + eXecute (1).
Most directories in a web site should be 705 for safety reasons, except some special areas.
0
What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

 
LVL 29

Assisted Solution

by:fibo
fibo earned 200 total points
ID: 21858769
<<The path in the error message "/clientdata/clients/r/e/response-systems.com/www/support/centre/access.php"what  does this mean, is it trying to intialize storage module from the old website host path?
Because as i have mentioned i am transferring the website to a new host, so do i have to change the path.>>
Check in your scripts for every include (", require(" and include path (look for the string "include").
Is there anything that should be changed?
Most usual suspects: any config.php or equivalent you might have. Lok alsi at any configuration file of your software. are there any paths that should be updated?
0
 
LVL 1

Author Comment

by:usmansultan
ID: 21861744
I have changed the security rights to 777, before it was 755, but it didnt help.
I have checked the scripts for Include function, didnt found anything wrong in it, anyways i will paste the code here, may be you will find something...
<?php // common.php

function error($msg) {

	?>

	<html>

	<head>

		<script language="Javascript">

		<!--

			alert("<?=$msg?>");

			history.back();

		//-->

		</script>

	</head>

	<body>

	</body>

	</html>

	

	<?

	exit;

}

?>

Open in new window

0
 
LVL 1

Author Comment

by:usmansultan
ID: 21861750
<?php // db.php
$dbhost = 'mysql-3.netregistry.net';
$dbuser = 'username';
$dbpass = 'password';

function dbConnect($db='') {
      global $dbhost, $dbuser, $dbpass;
      
      $dbcnx = @mysql_connect($dbhost, $dbuser, $dbpass)
            or die('The site database appears to be down.');
            
      if ($db!='' and !@mysql_select_db($db))
            die('The site database is unavailable.');
            
      return $dbcnx;
}

?>
0
 
LVL 1

Author Comment

by:usmansultan
ID: 21861780
Ray: I have placed an empty index.html file in the tmp directory, how can i test php sessions are wroking.
0
 
LVL 29

Expert Comment

by:fibo
ID: 21862975
<<I have placed an empty index.html file in the tmp directory,>>
Fine. Although, remember I told you this is neccessary but not related to your problem.

<<how can i test php sessions are wroking.>>
Run again Ray's "cheese script".
If you still get the same error message, then the problem is not solved.
0
 
LVL 1

Author Comment

by:usmansultan
ID: 21862989
Can you please tell me where in the website i have to save that script...and run it.....
0
 
LVL 1

Author Comment

by:usmansultan
ID: 21863377
Its been done, i called up our webhost, and it was the problem on their end.
Thanks a lot to both of you for drilling it down.
Just a last small question then i will distribute the points, on the website when i click on knowledgebase, it takes me to live website, it doesnt stay on the current website, so what i am missing.......
0
 
LVL 29

Assisted Solution

by:fibo
fibo earned 200 total points
ID: 21863632
<<on the website when i click on knowledgebase, it takes me to live website, it doesnt stay on the current website>>
If I understand what you say, when looking on the present pag you want to add this page/ qyestion to your own knowledge base.
This can be done by clciking on the "add to knowledgebase" at the bottom of your initial question.

If you click on "knowledge base" on the topright of this page, then this will display the curent content of your Not sure if this answer your question...
0
 
LVL 108

Expert Comment

by:Ray Paseur
ID: 21864303
Good!  I was fairly sure it was a server-side problem, and I'm glad you were able to get the problem isolated and resolved.  Best of luck as you go forward, ~Ray
0
 
LVL 1

Author Comment

by:usmansultan
ID: 21870879
The Question that i was asking is when you go to the website "http://rere6659.staging-zeus.netregistry.net/ " and click on knowledgebase, it takes you to live website, it doesnt stay on the current website, thats the last bit that i am missing...........
0
 
LVL 1

Author Comment

by:usmansultan
ID: 21870947
Thats the code for index page, now when i take out "http://www.response-systems.com" before knowledgebase link it doesnt work, i thought that "cgi-bin/knowledgebase/search.pl?Terms=articles" should be enough for the knowledgebase articles to display........
<?php
 

include_once 'admin/db.php';

include_once 'admin/common.php';
 

?>
 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
 

<!-- Site Copyright 2006 Response Systems -->
 

<head>

	<meta name="author" content="Hadley Grindrod" />

	<meta http-equiv="content-type" content="text/html;charset=iso-8859-2" />

	<link rel="stylesheet" href="style.css" type="text/css" />

	<title>Response Systems :: Home</title>

</head>
 

<!-- Begin Site Body -->
 

<body>

	<div class="content">

	

	<!-- Begin Header Section -->

	

		<div class="header_top"></div>

		<div class="header">

		

		<!-- Begin Navigation Bar -->

		

			<div class="header_right">

				<div id="nav">

    				<p><a href="solutions/">Solutions</a> | <a href="support/">Support</a> | <a href="links/">Links</a> | <a href="contact/">Contact</a></p>

				</div>

				<div class="header_search">

					<form method="get" action="http://response-systems.com/cgi-bin/search/search.pl">

						<p><input type="text" name="Terms" class="search" /> <input type="submit" value="Search" class="submit" /></p>

					</form>

				</div>

			</div>

			

		<!-- Begin Logo Placement -->

			

			<div class="header_left">

				<a href="#"><img src="images/responselogo.jpg" alt="Response Systems" /></a>

			</div>

		

	<!-- Finish Header Section -->	

				

		</div>

		

		<div class="header_bottom"></div>

		

	<!-- Begin Banner Placement -->

		

		<div class="spacer"></div>

		<div class="header_top"></div>

		<div class="subheader">

			<a href="solutions/"><img src="images/banner.jpg" alt="Solutions" /></a>

		</div>

		<div class="header_bottom"></div>

		<div class="spacer"></div>

		

	<!-- Begin Content Area -->

		

		<div class="header_top"></div>

		

		<!-- Column 1 : Left : Solutions -->

		

		<div class="column">

			<div class="box_top">

				<h2><a href="solutions/">Solutions:</a></h2>

			</div>	

			<div class="box_icon">	

				<a href="solutions/cse/"><img src="images/icons/cseicon.gif" alt="CSE-Edit/Access" /></a>

				<h2><a href="solutions/cse/">CSE-Edit/Access</a></h2>

				<p><a href="solutions/cse/">AllFusion Gen Client Server Encyclopedia Solutions</a></p>

			</div>

			<div class="box_icon">

				<a href="solutions/ce/"><img src="images/icons/ceicon.gif" alt="CE-Edit/Access" /></a>

				<h2><a href="solutions/ce/">CE-Edit/Access</a></h2>

				<p><a href="solutions/ce/">AllFusion Gen Host Encyclopedia Solutions</a></p>

			</div>

			<div class="box_bottom"></div>

		</div>

		

		<!-- Column 2 : Centre : Support -->

		

		<div class="column">

			<div class="box_top">

				<h2><a href="support/">Support:</a></h2>

			</div>	

			<div class="box_icon">

				<a href="http://www.response-systems.com/cgi-bin/knowledgebase/search.pl?Terms=articles"><img src="images/icons/base.gif" width="50" alt="Knowledgebase" /></a>

				<h2><a href="http://www.response-systems.com/cgi-bin/knowledgebase/search.pl?Terms=articles">Knowledgebase</a></h2>

				<p><a href="http://www.response-systems.com/cgi-bin/knowledgebase/search.pl?Terms=articles">For quick answers to the most common problems</a></p>

			</div>

			<div class="box_icon">

				<a href="support/centre/"><img src="images/icons/centre.gif" width="50" alt="Support Centre" /></a>

				<h2><a href="support/centre/">Support Centre</a></h2>

				<p><a href="support/centre/">Log in for access to technical support</a></p>

			</div>

			<div class="box_bottom"></div>	

		</div>	

		

		<!-- Column 3 : Right : Announcements -->

		

		<div class="column">

			<div class="box_top">

				<h2><a href="announcements/">Announcements:</a></h2>

			</div>	

			<?php
 

dbConnect("rs_response_systems_com");
 

$sql = "SELECT * FROM announcements ORDER BY id DESC LIMIT 2";

$result = mysql_query($sql);
 

$i=0;
 

	while ($i < 2) {

		$subject = mysql_result($result,$i,"subject");

		$subtitle = mysql_result($result,$i,"subtitle");

		$i++;
 

?>			

			<div class="box_icon">	

				<a href="announcements/index.php#news_item<? echo $i ;?>"><img src="images/icons/news<? echo $i ;?>.gif" width="50" alt="<? echo $subject; ?>" /></a>

				<h2><a href="announcements/index.php#news_item<? echo $i ;?>"><? echo $subject; ?></a></h2>

				<p><a href="announcements/index.php#news_item<? echo $i ;?>"><? echo $subtitle; ?></a></p>

			</div>

			

<?
 

	}
 

?>

			<div class="box_bottom"></div>

		</div>

		

	<!-- Finish Content Area -->

		

		<div class="header_bottom"></div>

		

	<!-- Begin Footer -->

		

		<div class="language">

			<a href="fr/"><img src="images/Language/France.png" alt="French" /></a>

			<a href="de/"><img src="images/Language/Germany.png" alt="German" /></a>

			<a href="es/"><img src="images/Language/Spain.png" alt="Spanish" /></a>

		</div>

		<div class="footer">

			<p><a href="about/">About Response Systems</a> | <a href="privacy/">Privacy</a> | <a href="enquiry/">Feedback</a> | <a href="contact/">Contact</a><br />

			&copy; Copyright 2006 Response Systems</p>

		</div>

	</div>

</body>

</html>

Open in new window

0
 
LVL 108

Expert Comment

by:Ray Paseur
ID: 21871250
You can isolate this issue by searching your code for "http" -- it will reveal hard-coded references to URLs.  Some of those are external.  You probably do not have the same directory structure as the external web site, so you can't just assume that taking out the http://www.response-systems.com will make your site be the same as the external site.  It is a matter of local and individual structure.  HTH, ~Ray
0
 
LVL 1

Author Comment

by:usmansultan
ID: 21871536
Agree with you, if you look at the other links none of them starts with Http, its just the knoweldgebase, which is starting from http.If i will leave it out like that, and when the ns records would be changed to point to this website, would it will still work...
If not ...then what would be the best way around,....
0
 
LVL 108

Expert Comment

by:Ray Paseur
ID: 21873275
"... when the ns records would be changed to point to this website, would it will still work..."

It's impossible to answer without knowing what is present in the underlying data of this website.  So the best answer anyone can give you is to test, and test again.  Do you have all the same programming and data structure on your web site as the response-systems.com site?  If not, you can't assume that it will still work.

From the context, I would guess that the knowledge base for these products (their predecessor was a thing called CoolGen, sold mostly unsuccessfully in the USA by Computer Associates) is a proprietary data base.  If you do not have rights to use it, you might want to contact Response Systems and find out about licensing.

Best regards, ~Ray
0
 
LVL 1

Author Comment

by:usmansultan
ID: 21896872
I have added a new question on the topic of what i asked, We have the same programming and data structure but i guess the website structure is bit different, and response systems comes under over company, and i am responsible for transffering the website across to the new one, and the reason for the transition is the bandwidth issue.
Anyways the link for the new question is;
http://www.experts-exchange.com/Programming/Languages/Scripting/Perl/Q_23525966.html
You guys have been great, hopefully you can help me in this question as well......
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
Deprecated and Headed for the Dustbin By now, you have probably heard that some PHP features, while convenient, can also cause PHP security problems.  This article discusses one of those, called register_globals.  It is a thing you do not want.  …
The viewer will learn how to dynamically set the form action using jQuery.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now