What are you using to upload the files to the Server?
when i download a file from the FTP Server, the code has been compressed to one line and corrupted. for example:
<?php//WA eCart Includerequire_once("../WA_eCart/cartEagleBrae_PHP.php");?><?php require_once('../../Connections/connEagleBrae.php'); ?><?php$cartEagleBrae->GetContent();?><?phpif (!function_exists("GetSQLValueString")) {function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") { if (PHP_VERSION < 6) { $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue; } $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue); switch ($theType) { case "text": $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL"; break; case "long": case "int": $theValue = ($theValue != "") ? intval($theValue) : "NULL"; break; case "double": $theValue = ($theValue != "") ? doubleval($theValue) : "NULL"; break; case "date": $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL"; break; case "defined": $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue; break; } return $theValue;}}mysql_select_db($database_connEagleBrae, $connEagleBrae);$query_rsProducts = "SELECT * FROM Products WHERE ProductCat = 2";$rsProducts = mysql_query($query_rsProducts, $connEagleBrae) or die(mysql_error());$row_rsProducts = mysql_fetch_assoc($rsProducts);$totalRows_rsProducts = mysql_num_rows($rsProducts);?
Try using a 3rd party ftp program like File Zilla.