【问题标题】:Dreamweaver, PHP, MySQLDreamweaver、PHP、MySQL
【发布时间】:2010-10-27 23:41:06
【问题描述】:

我已经下载了我的 cpanel 网络服务器的备份副本。我在本地笔记本电脑上安装了 WAMP。已设置数据库和 php 用户名和密码。然后我将数据库加载到本地 MySQL 数据库中。我验证了 phpinfo.php 工作正常。我在笔记本电脑上使用提取的网站设置了 Dreamweaver 管理网站。现在我的笔记本电脑上用于我网站的后端管理页面正在运行。但是前端没有完全加载,我不知道为什么。

请到这里查看页面的外观,因为我无法在此帖子上发布图片。 dev.quicksalenetwork.com/images/frontend.png

现在,如果您转到 live development site,您会看到它应该是什么样子。

这里也是index.php页面的源代码。

<?php 
//redirect for install
if(!file_exists('Connections/myconn.php'))
 header('Location:install.php');

//install file check
/*if(file_exists('install.php') || file_exists('install2.php') || file_exists('install3.php'))
 print '<font color="red"><strong>Please delete install files { install.php , install1.php, install2.php }</strong></font><br>';
*/

//*******************************************************************************
//PHP Real Estate Classifieds
//All Rights reserved by Quick Sale Network inc.
//Do not modify, duplicate, resell with out direct permission from Quick Sale Network inc.
//Script is bound by terms listed in terms.html file
//*******************************************************************************




//fetch template header 
include('header.php');

//define varable 
define('go','');
//set index varable for switch statment
if (isset($_REQUEST['go']))
 $go = $_REQUEST['go']; // requested page 
else
 $go = ''; // default

switch($go) {
 case 'gmap':
  include('gmap.php');
  break;
 case 'photos':
  include('photos.php');
  break;
 case 'resource_center':
  include('resource_center.php');
  break;
 case 'linkdir':
  include('linkdir.php');
  break;
 case 'mailme':
  include('formmail.php');
  break;
 case 'sell':
  include('sell.php');
  break;
 case 'buy':
  include('buy.php');
  break;
 case 'properties':
  include('properties.php');
  break;
 case 'login' :
  header("location: members/login.php");
  break;
 case 'register' :
  include('register.php');
  break;
 case 'pricing' :
  include('pricing.php');
  break;
 case 'calc' :
  include('calc.php');
  break;
 case 'contact' :
  include('contact.php');
  break;
 case 'faq' :
  include('faq.php');
  break;
 case 'features' : 
  include('features.php');
  break;
 case 'member_login' :
  include('member_login.php');
  break;
 case 'mailme' :
  echo"<br><h4>";
  include('formmail.php');
  echo"</h4>";
  break;
 case 'detail' :
  include('detail.php');
  break;
 case 'search' :
  include('search.php');
  break;
 /*case 'home_gmap' :
  include('home.php');*/
 default:
  include('home_gmap.php');
  break;
}//end of switch statment


//fetch template footer
include('footer_city.php');

?>

任何想法我做错了什么?

【问题讨论】:

  • 在调用header('Location:...')后总是exit;
  • 我在哪里输入这个。请帮忙。谢谢
  • 致电header('Location:...')后立即

标签: php mysql wordpress dreamweaver wamp


【解决方案1】:

我的猜测:

您的代码使用 php 短打开标签(&lt;? 而不是 &lt;?php)并且您尚未在 wamp 安装中启用短标签。

在你的 php.ini 中有一个 short_open_tag directive 来启用它

【讨论】:

    【解决方案2】:

    我也遇到过同样的事情。当文件损坏时会发生这种情况。只需删除该文件(将其删除将不起作用)并将所有代码复制回其中。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-03-27
      • 2013-07-10
      • 1970-01-01
      相关资源
      最近更新 更多