我是个初学者连这种代码都无法通过,大家给帮忙看看

popsoft 2002-03-29 11:09:39

<?
$ip = getenv("REMOTE_ADDR");
echo $ip;
?>
我用的是win98
apache,php,mysql
出错提示如下
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@KedingSoft.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.



--------------------------------------------------------------------------------

Apache/1.3.19 Server at localhost Port 287
...全文
59 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
darzui 2002-03-29
  • 打赏
  • 举报
回复
建议把apache重装一下试试看
另外,port287?不是80吗?
popsoft 2002-03-29
  • 打赏
  • 举报
回复
error log中提示如下

[Fri Mar 29 11:40:20 2002] [error] [client 127.0.0.1] Premature end of script headers: c:/kedingsoft/php4/php.exe
jamsband 2002-03-29
  • 打赏
  • 举报
回复
你的代码没有问题,还是你的配置有问题,再仔细看看吧,因为从你给出的信息我也不知道哪错了,估计apache里面的配置文件有问题
popsoft 2002-03-29
  • 打赏
  • 举报
回复
显示出来一片
有php version 4.01
及很多环境参数
mmzxg 2002-03-29
  • 打赏
  • 举报
回复
<?
print(phpinfo());
?>
如果是正确显示了有关PHP的帮助文件就是设置正确了,否则是没有成功

哈哈,下班了,走人!
愿你周末愉快,有事可以留短信息给我的
QQ:1795977
sandj 2002-03-29
  • 打赏
  • 举报
回复
先测试下这个函数能不能运行
<?
phpinfo();
?>
把结果告诉我再说下一步
popsoft 2002-03-29
  • 打赏
  • 举报
回复
怎么配置
我是初学者

连配置文件在哪都不知道
hlding 2002-03-29
  • 打赏
  • 举报
回复
你的程序没有错误,是你的配置文件没有进行设置,你把配置文件设置一下就应该能用了.

21,891

社区成员

发帖
与我相关
我的任务
社区描述
从PHP安装配置,PHP入门,PHP基础到PHP应用
社区管理员
  • 基础编程社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧