I have two servers. Once for dev on my local machine and one for liv through a server I lease.
Both have PHP4.
When using the following code:
<?
require "global/connect.php";
$sql = "SELECT link_url FROM company_links WHERE links_id = '$links_id'";
$get_url = mysql_query($sql);
$link_url = mysql_fetch_row($get_url);
header ("Location:$link_url[0]");
?>
On live it outputs the url correctly, but on dev it outputs a bunch of header information and not the url ...
Location:http://www.yahoo.com Server: BadBlue/1.0 Content-type: text/html Date: Sun, 28 Oct 2001 21:55:42 GMT Pragma: no-cache X-Powered-By: PHP/4.0.5 Cache_Control: no-cache, must-revalidate Accept-Ranges: bytes pragma: no-cache
Does anyone know where in PHP I can changea setting to get my code to work on dev?
Thanks in advance.