为什么使用require之后,用location:error.php?id=1会出现错误??? header("location: http://error.php?id=1") 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 header("location: http://yourname.com/error.php?id=1") 你require的config.php第三行有错误,导致错误输出了,然后你的header函数就会失效。因此,不要考虑location:error.php?id=1出错,先检查你的config.php的正确性 //config.php<?$dbpath="data";$userpath="$dbpath/user";$messpath="$dbpath/mess";$dbname="note.txt";?> 改为://config.php<?php$dbpath = "data";$userpath = $dbpath."/user";$messpath = $dbpath."/mess";$dbname = "note.txt";?> 怎么在EclipseSDK安装PHP插件 需要视频教程的新手进 php + mysql + apache 配置 使用PHP图片进行缩小后严重失真,有什么好的技巧不? 如何在Windows下让php能够使用java applet? 同样的代码在WIN XP下能用.在LINUX下就出错了 asp转到php 问一下,php中有没有像asp中sub一样的功能实现语法? [续下]服务器mail()函数配置问题 各位请进,这样的查询在mysql里怎么写 PHP数组输出求助 thinkPHP 导航菜单 php.ini 配置详细选项 有谁遇到这种问题?请帮-帮,帮-帮,帮个忙?
因此,不要考虑location:error.php?id=1出错,先检查你的config.php的正确性
<?
$dbpath="data";
$userpath="$dbpath/user";
$messpath="$dbpath/mess";
$dbname="note.txt";
?>
//config.php
<?php
$dbpath = "data";
$userpath = $dbpath."/user";
$messpath = $dbpath."/mess";
$dbname = "note.txt";
?>