zoukankan      html  css  js  c++  java
  • php 遇到的一些问题 GIS

    http://beidu.eu.gg/typeid.php?typeid=3  这个网站 刚开始的时候  页面乱码  

    解决方法是 : 在有乱码的php文件开头 加一句话 header(“Content-Type: text/html; charset=gb2312")

    <?php
    header("Content-Type:text/html; charset=gb2312") ;
    ob_start();
    session_start();
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>

    ........ 这是修改完的结果

    Warning: Cannot modify header information - headers already sent by (output started at /data/multiserv/users/1049935/projects/2369765/www/php2html/codefans.net/php2html_v1.1/admin/login.php:11) in /data/multiserv/users/1049935/projects/2369765/www/php2html/codefans.net/php2html_v1.1/admin/login.php on line 33

    http://beidu.eu.gg/admin/login.php 登录后台管理的时候出现这个问题 ,解决方法是

    <?php
    header("Content-Type:text/html; charset=gb2312") ;
    ob_start(); .// 自己添加的 
    session_start();
    require_once("../inc/conn.php");?>
    <HTML>
    <HEAD>。。。。

    header("location:index.php"); 后面再加一行

    if(mysql_num_rows($rs)==1)
    {
    $_SESSION["pwd"]=$_POST["pwd"];
    $_SESSION["admin"]=session_id();
    header("location:index.php");
    ob_get_contents();
    }

  • 相关阅读:
    正则表达式--hdu2206ip匹配
    win7查看隐藏分区
    我购买byd的几点逻辑
    html5笔记
    机器学习
    Popular Cows
    武大OJ 574. K-th smallest
    武大OJ 622. Symmetrical
    [HAOI2011]防线修建
    1185: [HNOI2007]最小矩形覆盖
  • 原文地址:https://www.cnblogs.com/gisbeginner/p/2874626.html
Copyright © 2011-2022 走看看