Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/283.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
PHP多个错误_Php - Fatal编程技术网

PHP多个错误

PHP多个错误,php,Php,Goo day,我是PHP新手,我遇到了多个错误: 不推荐使用:第6行的/home/content/69/9988669/html/intranet/index.php中不推荐使用函数session_unregister 不推荐使用:第20行的/home/content/69/9988669/html/intranet/index.php中不推荐使用函数会话_寄存器 警告:session_register[function.session register]:无法发送会话缓存限制器-标题已发送输

Goo day,我是PHP新手,我遇到了多个错误: 不推荐使用:第6行的/home/content/69/9988669/html/intranet/index.php中不推荐使用函数session_unregister

不推荐使用:第20行的/home/content/69/9988669/html/intranet/index.php中不推荐使用函数会话_寄存器

警告:session_register[function.session register]:无法发送会话缓存限制器-标题已发送输出,开始于第20行的/home/content/69/9988669/html/intranet/index.php:6 in/home/content/69/9988669/html/intranet/index.php

以下是我的页面代码:

<?php
session_start();
require '../common.inc';

$msg_err = $_SESSION["msgerr"];
session_unregister("msgerr");

session_unset();
session_destroy();
/*
session_unregister("con");
session_unregister("form_user_id");
session_unregister("form_password");
session_unregister('langue_user');
*/
$form_user_id = "";
$form_password = "";

$numero = $_GET["numero"];
session_register("numero");
?>
不要使用session\u registernumero;但是使用$\u会话['numero']=

不要使用session\u unregistermsgerr;但是使用unset$_SESSION['msgerr'];或$\u会话['msgerr']=NULL


common.inc可能会输出一些html,因此您会收到已发送的错误消息标题,但随着本文的更改,错误消息应该会自行解决

阅读手册并从中获取。对于已经发送的头,确保头之前没有输出。读这个谢谢弗雷德。你看到我的代码中有什么错误吗?英语和PHP都是新手,所以很难让所有的信息都被你的法语,KarinePrego,bienvenue Karine所理解。请看下面给出的答案。等一下,别瞎捣蛋了!本维努蒂是我的朋友;-请看/并参阅PHP.net,这是一个有争议的语言,包括法语和卡里内加农语,它是一个受欢迎的语言,它的意思是“改变”。塞拉·德蒙特·克勒问题解决方案(Cela démontre que le probleme aétérégléet résolu.Merci beaucoup):非常感谢。