php - Dreamweaver、PHP、MySQL

标签 php mysql wordpress dreamweaver wamp

我已经下载了 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');

?>

知道我做错了什么吗?

最佳答案

我的猜测:

您的代码使用 php 短开放标签( <? 而不是 <?php ),并且您尚未在 wamp 安装中启用短标签..

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

关于php - Dreamweaver、PHP、MySQL,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4038588/

相关文章:

MySQL 优化查询以增强比较报告的性能

html - 如何在页面上从头到尾扩展我的按钮?

jquery - 需要在每次鼠标移动时更改背景位置

php - Laravel 是否有在 paths.php 中组织路由的约定?

mysql - 插入重复的 MySQL 测试数据的简单方法?

javascript - 用highcharts绘制mysql数据

javascript - WordPress 循环内循环错误

javascript - PHP/Ajax 联系表单重定向到 PHP 文件

php - 如何使用PHP//Thread//Mutex//Cond

php - FFmpeg Laravel 如何制作 ffmpeg -f concat -i mylist.txt -c 复制 Laravel 的 Two_BeSureToWearFlowersInYourHair.mp3