function.session-start (URENT SVP)
3 messages
• Page 1 sur 1
- abelazi
- WRInaute impliqué

- Messages: 743
- Inscription: 21 Fév 2006
function.session-start (URENT SVP)
Bonjour,
je viens d'installer l'ancien version peel. et ça me donner cette erreur veuillez SVP m'aider.
---------
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/httpd/vhosts/monsite.com/httpdocs/index.php:1) in /home/httpd/vhosts/monsite.com/httpdocs/configuration.inc.php on line 66
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/httpd/vhosts/monsite.com/httpdocs/index.php:1) in /home/httpd/vhosts/monsite.com/httpdocs/configuration.inc.php on line 66
je viens d'installer l'ancien version peel. et ça me donner cette erreur veuillez SVP m'aider.
---------
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/httpd/vhosts/monsite.com/httpdocs/index.php:1) in /home/httpd/vhosts/monsite.com/httpdocs/configuration.inc.php on line 66
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/httpd/vhosts/monsite.com/httpdocs/index.php:1) in /home/httpd/vhosts/monsite.com/httpdocs/configuration.inc.php on line 66
- Code: Tout sélectionner
<?php
/********************************************************************************
*****/
/* */
/* PEEL */
/* */
/* Copyright (c) PEEL 2000 - 2007 */
/* email : info@peel.fr */
/* web : http://www.peel.fr */
/* développement d'applicatifs en php natif */
/* */
/* This program is free software; you can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License, or */
/* (at your option) any later version. */
/* */
/* This program is distributed in the hope that it will be useful, */
/* but WITHOUT ANY WARRANTY; without even the implied warranty of */
/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
/* GNU General Public License for more details. */
/* */
/* You should have received a copy of the GNU General Public License */
/* along with this program; if not, write to the Free Software */
/* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
/* */
/********************************************************************************
*****/
$dirroot = dirname(__FILE__);
$config = $dirroot."/lib/setup/info.inc.php";
if (file_exists($config)){include $config;}
if (empty($wwwroot) || empty($serveur_mysql) || empty($utilisateur_mysql) || empty($nom_de_la_base)) {
header("Location:installer.php");
} else {
$repertoire_images = $wwwroot."/upload/";
$repertoire_achat = $dirroot."/achat";
$repertoire_modele = $dirroot."/modeles";
$repertoire_upload = $dirroot."/upload";
$libdir = $dirroot."/lib";
$liste_mots = $dirroot."/liste_mots.txt";
$my_max_file_size = "102400"; # in bytes
$image_max_width = "500";
$image_max_height = "500";
$the_path = $dirroot."/upload/";
$registered_types = array(
"image/gif" => ".gif",
"image/pjpeg" => ".jpg, .jpeg",
"image/jpeg" => ".jpg, .jpeg",
"text/richtext" => ".txt, .rtf",
"application/pdf" => ".pdf",
"application/msword" => ".doc",
);
$allowed_types = array("image/gif","image/pjpeg","image/jpeg", "text/richtext", "application/pdf", "application/msword");
require($dirroot."/lib/class/caddie.php");
require($dirroot."/lib/class/mysql.php");
session_start();
session_register("SESSION");
/* Ouverture de l'objet mysql */
$db_host = $serveur_mysql;
$db_username = $utilisateur_mysql;
$db_password = $mot_de_passe_mysql;
$db_name = $nom_de_la_base;
$db_prefixe = "peel";
$db = new DBLayer($db_host, $db_username, $db_password, $db_name, $db_password);
// Initialisation de SESSION si nécessaire
if (! isset($_SESSION)) { $_SESSION = array();}
// Initialisation de l'objet caddie si nécessaire
if (! isset($_SESSION['caddie'])) {
$_SESSION['caddie'] = new Caddie;
}
include($dirroot."/mysql.inc.php");
// Initialisation de SESSION pour la couleur
if (! empty($_GET['style']))
{ $_SESSION['style'] = $_GET['style'];
} elseif
(empty($_SESSION['style']))
{ $_SESSION['style'] = "bleu";
}
// Recherche de la feuille de style
$stylefile = $wwwroot."/lib/css/".$_SESSION['style'].".css";
// Déclaration des fonctions
$fonctionsfile = $dirroot."/lib/fonctions/fonctions.php";
if (file_exists($fonctionsfile)){
require ($fonctionsfile);
}
}
?>
-

erestrebian - WRInaute occasionnel

- Messages: 472
- Inscription: 15 Juin 2007
Re: function.session-start (URENT SVP)
tu dois avoir une demande d'initialisation de session dans index.php
3 messages
• Page 1 sur 1
Lectures recommandées sur ce thème :
- function.session start dans URL Google
- [résolu] session start()
- Avis sur Start 100M et start 100M L+, fiable ?
- function rand()
- function getElementsByClassName
- function javascript print()
- msql_error() : undefined function
- Start.com de Microsoft
- [php] phpini et public function ?
- function show_arbo_online sur myphpannuaire
- Référencement : le problème des sessions des pages PHP - 04-08-2008
- Google Developer Day 2007 : à Paris et dans 9 autres villes - 27-05-2007
- A propos du Google Touch Graph... - 09-07-2002
- Référencement d'un forum phpBB - 09-05-2004
- Google API : guide de développement de l'API Google - 20-09-2002
- Script de mise en cache des pages (PHP MySQL) - 09-08-2010
- Google Sets - 17-07-2002
- Google rachète Teracent - 24-11-2009
Consultez la description détaillée des produits ou services de Google suivants : Teracent, Google Ventures
Qui est en ligne
Utilisateurs parcourant ce forum: Aucun utilisateur enregistré et 2 invités
