Modernvox Posted November 5, 2009 Share Posted November 5, 2009 Good evening brothers. So I had a full blown auction site up and running Yarpool.com. On Sept 14th I decided to switch hosts from BV to JustHost which was the worst move I ever made. I won't get into the boring details , but to make a long story short my site went off line on Sept 17th and never went back on. Anyhow, I just finished transferring all files for the site to work with on local dump/localhost. The problem I am having now is all the pages are messed up (showing only code). I included the following pick to give you an idea of what is happening. I also notice a lot of pages are asking for the config file , but I did download that as well and double checked to ensure it's there. http://i266.photobucket.com/albums/ii246/Pencilman_2008/index.jpg Quote Link to comment https://forums.phpfreaks.com/topic/180364-solved-finished-downloading-files-to-localhost-nothing-is-sho/ Share on other sites More sharing options...
trq Posted November 5, 2009 Share Posted November 5, 2009 Your localhost is configured to parse php? Your code doesn't use short open tags? I also notice a lot of pages are asking for the config file , but I did download that as well and double checked to ensure it's there. I notice you have this site within a sub directory of your document root, is the site written to handle this? Quote Link to comment https://forums.phpfreaks.com/topic/180364-solved-finished-downloading-files-to-localhost-nothing-is-sho/#findComment-951493 Share on other sites More sharing options...
Modernvox Posted November 5, 2009 Author Share Posted November 5, 2009 Your localhost is configured to parse php? I also notice a lot of pages are asking for the config file , but I did download that as well and double checked to ensure it's there. I notice you have this site within a sub directory of your document root, is the site written to handle this? Hey Thorpe, noticed you've helped me a few occasions already. Just want to give you a special shout out- Thank You. -Your localhost is configured to parse php? Yes -Your code doesn't use short open tags? short tags? I notice you have this site within a sub directory of your document root, is the site written to handle this? written to handle this?? Sorry to sound dumb and all, but i never had to upload an entire site before. I didn't write this code either... Quote Link to comment https://forums.phpfreaks.com/topic/180364-solved-finished-downloading-files-to-localhost-nothing-is-sho/#findComment-951496 Share on other sites More sharing options...
Modernvox Posted November 5, 2009 Author Share Posted November 5, 2009 Oh short open tags <? ?> Quote Link to comment https://forums.phpfreaks.com/topic/180364-solved-finished-downloading-files-to-localhost-nothing-is-sho/#findComment-951498 Share on other sites More sharing options...
Modernvox Posted November 5, 2009 Author Share Posted November 5, 2009 I notice you have this site within a sub directory of your document root, is the site written to handle this? What I did was create all the folders again and placed there appropriate files to each folder again. Quote Link to comment https://forums.phpfreaks.com/topic/180364-solved-finished-downloading-files-to-localhost-nothing-is-sho/#findComment-951504 Share on other sites More sharing options...
Gayner Posted November 5, 2009 Share Posted November 5, 2009 USE <?PHP Quote Link to comment https://forums.phpfreaks.com/topic/180364-solved-finished-downloading-files-to-localhost-nothing-is-sho/#findComment-951505 Share on other sites More sharing options...
Modernvox Posted November 5, 2009 Author Share Posted November 5, 2009 USE <?PHP Yeah. That's not working Quote Link to comment https://forums.phpfreaks.com/topic/180364-solved-finished-downloading-files-to-localhost-nothing-is-sho/#findComment-951507 Share on other sites More sharing options...
Modernvox Posted November 5, 2009 Author Share Posted November 5, 2009 A Lot of errors now: Warning: include(./includes/config.inc.php) [function.include]: failed to open stream: No such file or directory in C:\xampp\htdocs\public_html\feedback.php on line 6 Warning: include() [function.include]: Failed opening './includes/config.inc.php' for inclusion (include_path='.;C:\xampp\php\PEAR') in C:\xampp\htdocs\public_html\feedback.php on line 6 Warning: include(dates.inc.php) [function.include]: failed to open stream: No such file or directory in C:\xampp\htdocs\public_html\feedback.php on line 7 Warning: include() [function.include]: Failed opening 'dates.inc.php' for inclusion (include_path='.;C:\xampp\php\PEAR') in C:\xampp\htdocs\public_html\feedback.php on line 7 Warning: include(membertypes.inc.php) [function.include]: failed to open stream: No such file or directory in C:\xampp\htdocs\public_html\feedback.php on line 8 Warning: include() [function.include]: Failed opening 'membertypes.inc.php' for inclusion (include_path='.;C:\xampp\php\PEAR') in C:\xampp\htdocs\public_html\feedback.php on line 8 Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\public_html\feedback.php on line 9 Warning: ksort() expects parameter 1 to be array, null given in C:\xampp\htdocs\public_html\feedback.php on line 12 Quote Link to comment https://forums.phpfreaks.com/topic/180364-solved-finished-downloading-files-to-localhost-nothing-is-sho/#findComment-951508 Share on other sites More sharing options...
Gayner Posted November 5, 2009 Share Posted November 5, 2009 did u send it with <?php ?> Make sure php is enabled on ur server are u using xampp or wammp or what ? Quote Link to comment https://forums.phpfreaks.com/topic/180364-solved-finished-downloading-files-to-localhost-nothing-is-sho/#findComment-951509 Share on other sites More sharing options...
Modernvox Posted November 5, 2009 Author Share Posted November 5, 2009 did u send it with <?php ?> I have been using xammp for a few months now. php is enabled. I can't even open the admin? Must be paths, no? The include file isn't being added when called either? Do i need to change it to local host somewhere? <? #/////////////////////////////////////////////////////// #// COPYRIGHT 2004 Phpauction.org ALL RIGHTS RESERVED// #/////////////////////////////////////////////////////// define('INCLUDED', 1); error_reporting(1); $PHP_SELF=htmlspecialchars($PHP_SELF); $REMOTE_ADDR=(get_magic_quotes_runtime()) ? $REMOTE_ADDR: addslashes($REMOTE_ADDR); if(isset($_SESSION['PHPAUCTION_LOGGED_IN_USERNAME'])) $_SESSION['PHPAUCTION_LOGGED_IN_USERNAME'] = addslashes($_SESSION['PHPAUCTION_LOGGED_IN_USERNAME']); #// ######################################################################################################## #// Test mode #// TESTMODE variable will force Phpauction XL to run in "test mode" ($PHPAUCTION_TESTMODE = 'yes') #// or in "live mode" ($PHPAUCTION_TESTMODE = 'no') #// #// When running in test mode Phpuction will provide you the ability to use the Paypal simulator #// to simulate the payment processes $PHPAUCTION_TESTMODE = ''; // Possible values: 'yes, 'no' #// ######################################################################################################## //-- This is the directory where passwd.inc.php file resides - requires ending slash //echo "--------".$_SERVER['DOCUMENT_ROOT']."=========="; // "/www/var/www/phpauction-gpl-3.2/"; require_once('passwd.inc.php'); $main_path = $server_path; $include_path = $server_path."includes/"; //-- This is the directory where users pictures will be uploaded - requires ending slash //-- Under Windows use something like C:\path\to\you\uploaddir\ $image_upload_path = $server_path."uploaded/"; $uploaded_path = "uploaded/"; //-- This string is added to passwords before generating the MD5 hash //-- Be sure to never change it after the firt set up or //-- your users passwords will not work $MD5_PREFIX = "This_Is_My_Random_String_For_The_MD5_Hash_Algorithm"; /* This is the log file generated by cron.php - insert the complete file name (including the absolute path). If you don't want to generate a log file for cron activity simply leave this line commented. */ #$logFileName = "C:\path\to\cron.log"; /* Set this to TRUE if you want cron to generates HTML output BESIDES the cron file declared above. cron.php cannot generates only HTML output. */ $cronScriptHTMLOutput = FALSE; include $include_path."settings.inc.php"; include $include_path."messages.inc.php"; include $include_path."languages.inc.php"; ?> Make sure php is enabled on ur server are u using xampp or wammp or what ? [/quote] Quote Link to comment https://forums.phpfreaks.com/topic/180364-solved-finished-downloading-files-to-localhost-nothing-is-sho/#findComment-951511 Share on other sites More sharing options...
Gayner Posted November 5, 2009 Share Posted November 5, 2009 change to this: <?php #/////////////////////////////////////////////////////// #// COPYRIGHT 2004 Phpauction.org ALL RIGHTS RESERVED// #/////////////////////////////////////////////////////// define('INCLUDED', 1); error_reporting(1); $PHP_SELF=htmlspecialchars($PHP_SELF); $REMOTE_ADDR=(get_magic_quotes_runtime()) ? $REMOTE_ADDR: addslashes($REMOTE_ADDR); if(isset($_SESSION['PHPAUCTION_LOGGED_IN_USERNAME'])) $_SESSION['PHPAUCTION_LOGGED_IN_USERNAME'] = addslashes($_SESSION['PHPAUCTION_LOGGED_IN_USERNAME']); #// ######################################################################################################## #// Test mode #// TESTMODE variable will force Phpauction XL to run in "test mode" ($PHPAUCTION_TESTMODE = 'yes') #// or in "live mode" ($PHPAUCTION_TESTMODE = 'no') #// #// When running in test mode Phpuction will provide you the ability to use the Paypal simulator #// to simulate the payment processes $PHPAUCTION_TESTMODE = ''; // Possible values: 'yes, 'no' #// ######################################################################################################## //-- This is the directory where passwd.inc.php file resides - requires ending slash //echo "--------".$_SERVER['DOCUMENT_ROOT']."=========="; // "/www/var/www/phpauction-gpl-3.2/"; require_once('passwd.inc.php'); $main_path = $server_path; $include_path = $server_path."includes/"; //-- This is the directory where users pictures will be uploaded - requires ending slash //-- Under Windows use something like C:\path\to\you\uploaddir\ $image_upload_path = $server_path."uploaded/"; $uploaded_path = "uploaded/"; //-- This string is added to passwords before generating the MD5 hash //-- Be sure to never change it after the firt set up or //-- your users passwords will not work $MD5_PREFIX = "This_Is_My_Random_String_For_The_MD5_Hash_Algorithm"; /* This is the log file generated by cron.php - insert the complete file name (including the absolute path). If you don't want to generate a log file for cron activity simply leave this line commented. */ #$logFileName = "C:\path\to\cron.log"; /* Set this to TRUE if you want cron to generates HTML output BESIDES the cron file declared above. cron.php cannot generates only HTML output. */ $cronScriptHTMLOutput = FALSE; include $include_path."settings.inc.php"; include $include_path."messages.inc.php"; include $include_path."languages.inc.php"; ?> Quote Link to comment https://forums.phpfreaks.com/topic/180364-solved-finished-downloading-files-to-localhost-nothing-is-sho/#findComment-951512 Share on other sites More sharing options...
Modernvox Posted November 5, 2009 Author Share Posted November 5, 2009 change to this: <?php Yeah .. Did that and this is what the index page reads: Warning: require(./includes/config.inc.php) [function.require]: failed to open stream: No such file or directory in C:\xampp\htdocs\public_html\index.php on line 7 Fatal error: require() [function.require]: Failed opening required './includes/config.inc.php' (include_path='.;C:\xampp\php\PEAR') in C:\xampp\htdocs\public_html\index.php on line 7 Quote Link to comment https://forums.phpfreaks.com/topic/180364-solved-finished-downloading-files-to-localhost-nothing-is-sho/#findComment-951513 Share on other sites More sharing options...
Gayner Posted November 5, 2009 Share Posted November 5, 2009 show us that info in config.php Quote Link to comment https://forums.phpfreaks.com/topic/180364-solved-finished-downloading-files-to-localhost-nothing-is-sho/#findComment-951517 Share on other sites More sharing options...
Modernvox Posted November 5, 2009 Author Share Posted November 5, 2009 Isn't that it in the earlier post. It is the config.inc.php file Quote Link to comment https://forums.phpfreaks.com/topic/180364-solved-finished-downloading-files-to-localhost-nothing-is-sho/#findComment-951522 Share on other sites More sharing options...
Gayner Posted November 5, 2009 Share Posted November 5, 2009 giv me all code in all these: include $include_path."settings.inc.php"; include $include_path."messages.inc.php"; include $include_path."languages.inc.php"; Quote Link to comment https://forums.phpfreaks.com/topic/180364-solved-finished-downloading-files-to-localhost-nothing-is-sho/#findComment-951523 Share on other sites More sharing options...
Modernvox Posted November 5, 2009 Author Share Posted November 5, 2009 giv me all code in all these: include $include_path."settings.inc.php"; include $include_path."messages.inc.php"; include $include_path."languages.inc.php"; <? #//v.3.2.2 if(!defined("INCLUDED")) exit("Access denied"); /*********************************************************************** * Don't edit the code below unless you really know what you are doing * ************************************************************************/ /* -------------------- + Anti Hack Code + Frederic 15/04/2008 --------------- */ if (!function_exists(phpa_safe) ) { function phpa_safe() { $error = 0; $query_string = strtolower(rawurldecode($_SERVER['QUERY_STRING'])); $bad_string = array("%20union%20", "/*", "*/union/*", "+union+", "load_file", "outfile", "document.cookie", "onmouse", "<script", "<iframe", "<applet", "<meta", "<style", "<form", "<img", "<body", "<link", "_GLOBALS", "_REQUEST", "_GET", "_POST", "include_path", "prefix", "http://", "https://", "ftp://", "smb://" ); foreach ($bad_string as $string_value) { if (strstr( $query_string, $string_value )) $error = 1; } unset($query_string, $bad_string, $string_value); foreach ( $_GET as $secvalue) { if ( (eregi("<[^>]*script*\"?[^>]*>", $secvalue)) || (eregi("<[^>]*object*\"?[^>]*>", $secvalue)) || (eregi("<[^>]*iframe*\"?[^>]*>", $secvalue)) || (eregi("<[^>]*applet*\"?[^>]*>", $secvalue)) || (eregi("<[^>]*meta*\"?[^>]*>", $secvalue)) || (eregi("<[^>]*style*\"?[^>]*>", $secvalue)) || (eregi("<[^>]*form*\"?[^>]*>", $secvalue)) || (eregi("<[^>]*img*\"?[^>]*>", $secvalue)) || (eregi("<[^>]*onmouseover*\"?[^>]*>", $secvalue)) || (eregi("<[^>]*body*\"?[^>]*>", $secvalue)) || (eregi("\([^>]*\"?[^)]*\)", $secvalue)) || (eregi("ftp://", $secvalue)) || (eregi("https://", $secvalue)) || (eregi("http://", $secvalue)) ) $error = 1; } $ss = $_SERVER['HTTP_USER_AGENT']; if ((eregi("libwww",$ss)) || (eregi("^lwp",$ss)) || (eregi("^Jigsaw",$ss)) || (eregi("^Wget",$ss)) || (eregi("^Indy\ Library",$ss)) ) $error = 1; if ($_SERVER["REQUEST_METHOD"] == "POST") { if (!empty($_SERVER['HTTP_REFERER'])) { if (!ereg($_SERVER['HTTP_HOST'], $_SERVER['HTTP_REFERER'])) $error = 1; } } if ( $error ) { header("HTTP/1.1 403 Forbidden"); exit("Access forbbiden"); } } } phpa_safe(); /* -------------------- -End- Anti Hack Code + Frederic 15/04/2008 --------------- */ if(!function_exists(phpa_include)){ function phpa_include($fileto) { global $SETTINGS,$prefix; $SETTINGS['theme']='mytheme'; if (!isset($SETTINGS['theme']) || empty($SETTINGS['theme'])) $SETTINGS['theme']='default'; if((strstr($_SERVER['PHP_SELF'],"browse.php") || strstr($_SERVER['PHP_SELF'],"item.php") || strstr($_SERVER['PHP_SELF'],"browse_wanted.php") || strstr($_SERVER['PHP_SELF'],"wantedad.php")) && $fileto=='style.css'){ $filename=$SETTINGS['siteurl']."themes/".$SETTINGS['theme']."/".$fileto; }else{ $filename="themes/".$SETTINGS['theme']."/".$fileto; if (!file_exists($filename)) { if (!file_exists($P."themes/default/".$fileto)) { exit("Missing template: themes/default/".$fileto); } else { $filename=$P."themes/default/".$fileto; } } } return $filename; } } if(!function_exists(phpa_uploaded)){ function phpa_uploaded($useprefix=true) { global $SETTINGS,$prefix; if (!isset($SETTINGS['theme']) || empty($SETTINGS['theme'])) $SETTINGS['theme']='default'; $dirname="themes/".$SETTINGS['theme']; if (!is_dir($prefix.$dirname)) { if (!is_dir($prefix."themes/default")) { $dirname="uploaded"; } else { $dirname="themes/default"; } } return ($useprefix ? $prefix : "").$dirname."/"; } } if(!function_exists(setsspan)){ function setsspan($astring,$astyle) { return '<SPAN style="'.$astyle.'">'.$astring."</SPAN>"; } } if(!function_exists(getUrlParams)){ function getUrlParams($sep){ $params = $_SERVER["PATH_INFO"]; $params = substr($params,1); $params = explode(chr(47),$params); $tArr = Array(); for($i=0; $i<count($params); $i++){ if(trim($params[$i]) != ""){ $temp = explode($sep, $params[$i]); if(trim($temp[1]) != "") $tArr[$temp[0]] = $temp[1]; } } return $tArr; } } //-- $password_file = $include_path."passwd.inc.php"; include($password_file); //-- Database connection if(!mysql_connect($DbHost,$DbUser,$DbPassword)) { $NOTCONNECTED = TRUE; } if(!mysql_select_db($DbDatabase)) { $NOTCONNECTED = TRUE; } if(!strpos($_SERVER['argv'][0],"sendinvoices_cron.php") && !strpos($_SERVER['argv'][0],"cron.php") && !strpos($_SERVER['argv'][0],"sendinvoices_cron.php") && !strpos($_SERVER['argv'][0],"cron.php")) session_start(); #// RETRIEVE SETTINGS AND CREATE SESSION VARIABLES FOR THEM include $include_path."fonts.inc.php"; $query = "select * from PHPAUCTIONXL_settings"; $RES = @mysql_query($query); if($RES) { $SETTINGS = mysql_fetch_array($RES); //echo "1 "; //print_r($SETTINGS); #// Retrieve fonts and colors settings $query = "SELECT * FROM PHPAUCTIONXL_fontsandcolors"; $R__ = mysql_query($query); if($R__) { $FONTSANDCOLORS = mysql_fetch_array($R__); while(list($k,$v) = each($FONTSANDCOLORS)) { $SETTINGS[$k] = $v; } //echo "2 "; } // echo realpath(phpa_uploaded()."settings.ini");exit; if(file_exists(realpath(phpa_uploaded()."settings.ini"))) { $INI_SETTINGS=parse_ini_file(realpath(phpa_uploaded()."settings.ini")); $SETTINGS=array_merge($SETTINGS,$INI_SETTINGS); } /* echo "<pre>"; print_r($_SESSION); echo "</pre>"; */ //dexter //for setting limit of looged in user in session if(isset($_SESSION['PHPAUCTION_LOGGED_IN'])){ $query = "SELECT buy_it_now_limit FROM PHPAUCTIONXL_users WHERE `id`='".$_SESSION['PHPAUCTION_LOGGED_IN']."'"; $R__ = mysql_query($query); if($R__) { $VAL = mysql_fetch_array($R__); $buyN_limit = $VAL[0]; } $query1 = "SELECT count(*) FROM PHPAUCTIONXL_auctions WHERE `user`='".$_SESSION['PHPAUCTION_LOGGED_IN']."' AND `buy_now`!='' AND `closed`=0"; $R1__ = mysql_query($query1); if($R1__) { $VAL2 = mysql_fetch_row($R1__); $buyN_limit_user = $VAL2[0]; } if( $buyN_limit> $buyN_limit_user) $SETTINGS['buy_now_act']=1; else $SETTINGS['buy_now_act']=0; //chec number od days for registration or logged in user $query121 = "SELECT reg_date FROM PHPAUCTIONXL_users WHERE `id`='".$_SESSION['PHPAUCTION_LOGGED_IN']."'"; $R121__ = mysql_query($query121); if($R121__) { $VAL221 = mysql_fetch_row($R121__); $user_reg_date = $VAL221[0]; $reg_date = date("d.m.Y",strtotime($user_reg_date)); $exp_date = date("d.m.Y",strtotime($user_reg_date.'+2 weeks')); $curr_date = date("d.m.Y",strtotime('now')); if($curr_date<=$exp_date){ $total_limit = 10; }else{ //for checking total listing limit $query11 = "SELECT total_limit FROM PHPAUCTIONXL_auctionextension"; $R11__ = mysql_query($query11); if($R11__) { $VAL21= mysql_fetch_row($R11__); $total_limit = $VAL21[0]; } } } //echo $total_limit; $query12 = "SELECT count(*) FROM PHPAUCTIONXL_auctions WHERE `user`='".$_SESSION['PHPAUCTION_LOGGED_IN']."' AND `closed`=0"; $R12__ = mysql_query($query12); if($R12__) { $VAL22 = mysql_fetch_row($R12__); $user_posted_listings = $VAL22[0]; } if($user_posted_listings<$total_limit) $SETTINGS['post_limit']=1; else $SETTINGS['post_limit']=0; } //end dexters } //echo "4 "; $_SESSION["SETTINGS"]=$SETTINGS; if(!isset($prefix)) $prefix=""; include($include_path."currency.inc.php"); include($include_path."errors.inc.php"); #// Gian - sept 12 2002 include($include_path."https.inc.php"); ?> Next: <?#//v.3.2.5 if(!defined('INCLUDED')) exit("Access denied"); #/////////////////////////////////////////////////////// #// COPYRIGHT 2007 Phpauction.net ALL RIGHTS RESERVED // #/////////////////////////////////////////////////////// /** ************************************************************* * NOTE: Language management */ if(!empty($_GET[lan])) { $language = $_GET[lan]; $_SESSION['language'] = $language; #// Set language cookie setcookie("USERLANGUAGE","",time()-3600); setcookie("USERLANGUAGE",$_GET[lan],time()+31536000,"/"); } elseif(isset($_SESSION['language'])) { $language = $_SESSION['language']; } elseif(empty($_SESSION['language']) && !isset($_COOKIE['USERLANGUAGE'])) { $language = $SETTINGS['defaultlanguage']; $_SESSION['language'] = $language; #// Set language cookie setcookie("USERLANGUAGE","",time()-3600); setcookie("USERLANGUAGE",$language,time()+31536000); } elseif(empty($_GET[lan])) { if(isset($_COOKIE['USERLANGUAGE'])) { $language = $_COOKIE['USERLANGUAGE']; } else { $language = $SETTINGS['defaultlanguage']; } } elseif(isset($_COOKIE['USERLANGUAGE'])) { $language = $_COOKIE['USERLANGUAGE']; } elseif(strlen($_GET[lan]) > 2 ) { $language = $SETTINGS['defaultlanguage']; } else { $language = $SETTINGS['defaultlanguage']; } $language = str_replace('..','',addslashes(htmlspecialchars($language))); #// If the user is logged in, update the user's record #// This is used to send the e-mails in the user's language if(isset($_SESSION['PHPAUCTION_LOGGED_IN'])) { mysql_query("DELETE FROM PHPAUCTIONXL_userslanguage WHERE user='".$_SESSION['PHPAUCTION_LOGGED_IN']."'"); mysql_query("INSERT INTO PHPAUCTIONXL_userslanguage VALUES( '".$_SESSION['PHPAUCTION_LOGGED_IN']."', '$language')"); } if (!$language) $language = $SETTINGS['defaultlanguage']; require($include_path.'messages.'.$language.'.inc.php'); /* **************************************************************/ ?> and finally: <?#//v.3.1.0 if(!defined('INCLUDED')) exit("Access denied"); #/////////////////////////////////////////////////////// #// COPYRIGHT 2004 Phpauction.org ALL RIGHTS RESERVED// #/////////////////////////////////////////////////////// #// EDIT THE FOLLOWING LINES ********************************************************* #// Add the languages you want to enable below in the following form: #// #// "XX" => "Language", #// #// where #// XX: is the two characters code of the language (i.e. IT for "italian", "FR" for french, ect #// Language: is the description of the language #// #// Default languages are English and Spanish $LANGUAGES = array( "EN" => "English", "ES" => "Español" ); #// END OF EDIT AREA ********************************************************* #// Retrieve available languages if($dir = opendir($include_path)) { while (($file = readdir($dir)) !== false) { if(ereg("^messages\.([A-Z]{2})\.inc\.php$",$file,$regs)) { $LANGUAGES[$regs[1]] = $regs[1]; } } closedir($dir); } if(!function_exists(ShowFlags)) { Function ShowFlags() { GLOBAL $SETTINGS,$LANGUAGES; reset($LANGUAGES); $counter = 0; foreach($LANGUAGES as $lang => $value) { if($counter > 3) { print "<BR>"; $counter = 0; } print "<A HREF=".$_SERVER['PHP_SELF']."?lan=$lang><IMG vspace=2 hspace=2 SRC=".$SETTINGS['siteurl']."includes/flags/".$lang.".gif BORDER=0 alt=\"$lang\"/></A>"; $counter++; } } } if(!function_exists(ShowAdminFlags)) { Function ShowAdminFlags() { GLOBAL $SETTINGS,$LANGUAGES,$LANGUAGES; reset($LANGUAGES); if(count($LANGUAGES) <= 1) return; $counter = 0; foreach($LANGUAGES as $lang => $value) { print "<A TARGET=_top HREF=index.php?lan=$lang><IMG ALIGN=MIDDLE vspace=2 hspace=2 SRC=".$SETTINGS['siteurl']."includes/flags/".$lang.".gif BORDER=0></A>"; } } } ?> Quote Link to comment https://forums.phpfreaks.com/topic/180364-solved-finished-downloading-files-to-localhost-nothing-is-sho/#findComment-951526 Share on other sites More sharing options...
trq Posted November 5, 2009 Share Posted November 5, 2009 You either need to move the contents of html_public (which was your old document root on your remote server) into your current document root or re-configure the application to work from the sub directory. Quote Link to comment https://forums.phpfreaks.com/topic/180364-solved-finished-downloading-files-to-localhost-nothing-is-sho/#findComment-951536 Share on other sites More sharing options...
Modernvox Posted November 5, 2009 Author Share Posted November 5, 2009 I'm starting to see what's going on here. As Thorpe suggested earlier, all my paths are screwed up. I managed to fix admin and also index with the exception of setting up the DB whcih i will attempt now and see what happens and respond. I'm not 100% sure , but i think this is what's up. Quote Link to comment https://forums.phpfreaks.com/topic/180364-solved-finished-downloading-files-to-localhost-nothing-is-sho/#findComment-951537 Share on other sites More sharing options...
Gayner Posted November 5, 2009 Share Posted November 5, 2009 BRo you need to add <?php to all documents... Quote Link to comment https://forums.phpfreaks.com/topic/180364-solved-finished-downloading-files-to-localhost-nothing-is-sho/#findComment-951539 Share on other sites More sharing options...
Modernvox Posted November 5, 2009 Author Share Posted November 5, 2009 You either need to move the contents of html_public (which was your old document root on your remote server) into your current document root or re-configure the application to work from the sub directory. Yes indeed Thorpe. What would be the best way to go? I just ran my feedback.php page and received this error: Fatal error: Call to undefined function phpa_include() in C:\xampp\htdocs\public_html\feedback.php on line 239 Considering NOTHING has been touched as far as coding goes, why would this error be reporting? I know it doesn't have anything to do with not having the db set up yet right? Quote Link to comment https://forums.phpfreaks.com/topic/180364-solved-finished-downloading-files-to-localhost-nothing-is-sho/#findComment-951540 Share on other sites More sharing options...
Modernvox Posted November 5, 2009 Author Share Posted November 5, 2009 BRo you need to add <?php to all documents... Really? I can't just turn on short open tags? Quote Link to comment https://forums.phpfreaks.com/topic/180364-solved-finished-downloading-files-to-localhost-nothing-is-sho/#findComment-951542 Share on other sites More sharing options...
Gayner Posted November 5, 2009 Share Posted November 5, 2009 BRo you need to add <?php to all documents... Really? I can't just turn on short open tags? Sorry it's just a habbit for me to say that cause i remember i used to have the same problem and i finally figured it out after hours i dont wannt any other person to go through that issue like i did i am sorry sir.. Quote Link to comment https://forums.phpfreaks.com/topic/180364-solved-finished-downloading-files-to-localhost-nothing-is-sho/#findComment-951546 Share on other sites More sharing options...
Modernvox Posted November 5, 2009 Author Share Posted November 5, 2009 BRo you need to add <?php to all documents... Really? I can't just turn on short open tags? Sorry it's just a habbit for me to say that cause i remember i used to have the same problem and i finally figured it out after hours i dont wannt any other person to go through that issue like i did i am sorry sir.. Not your fault, I just went into xammp and turned on the short open tags. Now I am trying to install a DB backup , but it keeps saying No DB created I've done this twice b4 , but for some reason I can't remember the procedure Quote Link to comment https://forums.phpfreaks.com/topic/180364-solved-finished-downloading-files-to-localhost-nothing-is-sho/#findComment-951549 Share on other sites More sharing options...
Modernvox Posted November 5, 2009 Author Share Posted November 5, 2009 Ahh there it is, got the DB. Thanks Quote Link to comment https://forums.phpfreaks.com/topic/180364-solved-finished-downloading-files-to-localhost-nothing-is-sho/#findComment-951550 Share on other sites More sharing options...
Modernvox Posted November 5, 2009 Author Share Posted November 5, 2009 What would the server path be when using localhost/localdump? It was $server_path= "/home/vvoyvwd/public_html/"; What now? I know probably a stupid question Quote Link to comment https://forums.phpfreaks.com/topic/180364-solved-finished-downloading-files-to-localhost-nothing-is-sho/#findComment-951552 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.