Session_start() avec Free
Résolu
MHH225
Messages postés
529
Date d'inscription
Statut
Membre
Dernière intervention
-
MHH225 Messages postés 529 Date d'inscription Statut Membre Dernière intervention -
MHH225 Messages postés 529 Date d'inscription Statut Membre Dernière intervention -
Salut !
J'ai un problème avec session_start() et Free : j'utilise un sesion_start(); en include au tout début de ma page, ce qui marche très bien en local (WampServer2.0) mais pas lorsque j'envoie mes pages sur le serveur Free.
Mon code est construit ainsi :
index.php
-------------
<?php
include('config.php');
include('haut.php');
?>
<div id="corps">
...
config.php
--------------
define(ROOTPATH, 'http://' . $_SERVER['HTTP_HOST'] . '/', true);
function connection_db()
{
mysql_connect('localhost', 'root', '');
mysql_select_db('pio');
}
function bbcode($texte)
{
//BBCode
return $texte
}
haut.php
------------
<!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" >
<head>
<title>Poste XVIII - Saint-François de Sales</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" media="screen" type="text/css" title="Essai" href="<?php echo ROOTPATH; ?>design.css" />
</head>
<body>
<div id="en_tete">
...
Ma page est codée en AINSI et j'ai essayé tout ce qu'il y a là : http://www.commentcamarche.net/forum/affich 1531776 session start et header
Si vous avez une idée...
J'ai un problème avec session_start() et Free : j'utilise un sesion_start(); en include au tout début de ma page, ce qui marche très bien en local (WampServer2.0) mais pas lorsque j'envoie mes pages sur le serveur Free.
Mon code est construit ainsi :
index.php
-------------
<?php
include('config.php');
include('haut.php');
?>
<div id="corps">
...
config.php
--------------
define(ROOTPATH, 'http://' . $_SERVER['HTTP_HOST'] . '/', true);
function connection_db()
{
mysql_connect('localhost', 'root', '');
mysql_select_db('pio');
}
function bbcode($texte)
{
//BBCode
return $texte
}
haut.php
------------
<!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" >
<head>
<title>Poste XVIII - Saint-François de Sales</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" media="screen" type="text/css" title="Essai" href="<?php echo ROOTPATH; ?>design.css" />
</head>
<body>
<div id="en_tete">
...
Ma page est codée en AINSI et j'ai essayé tout ce qu'il y a là : http://www.commentcamarche.net/forum/affich 1531776 session start et header
Si vous avez une idée...
A voir également:
- Session_start() avec Free
- Word 2013 free download - Télécharger - Traitement de texte
- Zimbra free - Guide
- Free office - Télécharger - Suite bureautique
- Sketchup free - Télécharger - 3D
- Bitdefender free - Télécharger - Antivirus & Antimalwares
2 réponses
Waow !! J'ai continué de fouinner sur Internet et je suis tombé là-dessus : http://www.commentcamarche.net/forum/affich 3375532 erreur avec session start sous free
Ca marche !!
Ca marche !!