par
Malaudiii » 02 avr. 2014, 11:03
Bonjour,
j'ai hébérgé mon appli web chez free pour voir si elle fonctionnait quand elle n'était plus en local, et j'ai un problème avec mes session, il me donne le message suivant :
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /mnt/101/sdb/a/e/lanzaa/eclipse/RedCap/peta.php:1) in /mnt/101/sdb/a/e/lanzaa/eclipse/RedCap/peta.php on line 2
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /mnt/101/sdb/a/e/lanzaa/eclipse/RedCap/peta.php:1) in /mnt/101/sdb/a/e/lanzaa/eclipse/RedCap/peta.php on line 2
après avoir regarder sur le web, j'ai donc bien mis mes session_start() en haut de ma page, bien créé un dossier sessions à la racine, mais toujours ces messages d'erreur qui s'affiche, je vous donne le début de ma page péta.php, ce qui pourra peut être vous aider à éclaircir le pb:
<?php
// initialisation
// chargement de tes fichiers annexe (functions....)
session_start ();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
<head>
<meta http-equiv=Content-Type content="text/html; charset=utf-8" />
<link href="style.css" rel="stylesheet" type="text/css" />
<title>Résultat de la conversion</title>
</head>
<body>
<?php
require ('fonctions.php');
require_once '/PHPExcel/PHPExcel/IOFactory.php';
$dstRep = './temp/'; // destination du fichier
$cible = $dstRep . $_FILES ['fichier'] ['name']; // cible du fichier xls
VerifFichier ( $_FILES );
// address where the downloaded file is
move_uploaded_file ( $_FILES ['fichier'] ['tmp_name'], $cible );
// import Excel file
$objPHPExcel = PHPExcel_IOFactory::load ( $cible );
$CibleBaseValidation = 'multi_exp.xls';
$BaseValidation = PHPExcel_IOFactory::load ( $CibleBaseValidation );
$sheet2 = $BaseValidation->getSheet ();
$numeroLigneMax2 = $sheet2->getHighestRow ();
$sheetGroup = $objPHPExcel->getSheet ( 2 );
$sheetCrf = $objPHPExcel->getSheet ();
$tab_cod ["radio_on"] = "0,oui|1,non"; // tableau de codage d'expression radio
// Writing in the new csv file, the first line (Title different column)
// placement on the 3rd sheet xls file (called Items)
$sheet = $objPHPExcel->getSheet ( 3 );
// line number of open xls file
$numeroLigneMax = $sheet->getHighestRow ();
$numeroLigneMaxGroup = $sheetGroup->getHighestRow ();
$NbcColumn = $sheet->getHighestColumn();
echo $NbcColumn;
etc etc..
Merci pour vos réponse

Bonjour,
j'ai hébérgé mon appli web chez free pour voir si elle fonctionnait quand elle n'était plus en local, et j'ai un problème avec mes session, il me donne le message suivant :
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /mnt/101/sdb/a/e/lanzaa/eclipse/RedCap/peta.php:1) in /mnt/101/sdb/a/e/lanzaa/eclipse/RedCap/peta.php on line 2
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /mnt/101/sdb/a/e/lanzaa/eclipse/RedCap/peta.php:1) in /mnt/101/sdb/a/e/lanzaa/eclipse/RedCap/peta.php on line 2
après avoir regarder sur le web, j'ai donc bien mis mes session_start() en haut de ma page, bien créé un dossier sessions à la racine, mais toujours ces messages d'erreur qui s'affiche, je vous donne le début de ma page péta.php, ce qui pourra peut être vous aider à éclaircir le pb:
[php]<?php
// initialisation
// chargement de tes fichiers annexe (functions....)
session_start ();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
<head>
<meta http-equiv=Content-Type content="text/html; charset=utf-8" />
<link href="style.css" rel="stylesheet" type="text/css" />
<title>Résultat de la conversion</title>
</head>
<body>
<?php
require ('fonctions.php');
require_once '/PHPExcel/PHPExcel/IOFactory.php';
$dstRep = './temp/'; // destination du fichier
$cible = $dstRep . $_FILES ['fichier'] ['name']; // cible du fichier xls
VerifFichier ( $_FILES );
// address where the downloaded file is
move_uploaded_file ( $_FILES ['fichier'] ['tmp_name'], $cible );
// import Excel file
$objPHPExcel = PHPExcel_IOFactory::load ( $cible );
$CibleBaseValidation = 'multi_exp.xls';
$BaseValidation = PHPExcel_IOFactory::load ( $CibleBaseValidation );
$sheet2 = $BaseValidation->getSheet ();
$numeroLigneMax2 = $sheet2->getHighestRow ();
$sheetGroup = $objPHPExcel->getSheet ( 2 );
$sheetCrf = $objPHPExcel->getSheet ();
$tab_cod ["radio_on"] = "0,oui|1,non"; // tableau de codage d'expression radio
// Writing in the new csv file, the first line (Title different column)
// placement on the 3rd sheet xls file (called Items)
$sheet = $objPHPExcel->getSheet ( 3 );
// line number of open xls file
$numeroLigneMax = $sheet->getHighestRow ();
$numeroLigneMaxGroup = $sheetGroup->getHighestRow ();
$NbcColumn = $sheet->getHighestColumn();
echo $NbcColumn;
etc etc..[/php]
Merci pour vos réponse ;)