当我打开工作正常index.php
上本地主机 - 显示全部或PHP错误,如(身份不明的变量等)和网页在不工作的页面所有。然而完全相同的PHP文件的远程服务器(Godaddy的举例)PHP脚本不工作WAMP本地主机,但远程服务器
的index.php
文件开始与
<?
require_once ('templates/header.php');
?>
<div class='grid_12'>
<table>
<div id="form" > and son on....
的header.php
文件上工作的开头:
<?php
session_start();
include('classes/secure.class.php'); // include the class
$secure = new secure(); // load the class
$secure->secureGlobals(); // run the main class function
require_once ('config.php');
require_once ('functions.php');
require_once ('templates/commonheader.php');
require_once ('lang.php');
header('Content-type: text/html; charset=$charset');
?> and so on...
我假设有一PHP SESSIONS
在localhost问题。我不知道为什么相同的脚本不能在localhost中工作。任何帮助表示赞赏。
J.
我认为你的服务器是开发环境并显示所有警告或错误,而你的localhost不显示 – iatboy 2014-10-04 07:57:17