Précédent   Forum des professionnels en informatique > PHP > Langage > Sessions
Sessions Forum d'entraide sur les sessions avec PHP. Avant de poster -> FAQ sessions, Cours sessions et Sources sécurité
Partagez cette discussion sur d'autres réseaux sociaux : Viadeo Twitter Google Facebook Digg Delicious MySpace Yahoo
Réponse Proposer ce sujet en actualité
 
Outils de la discussion
Publicité
'
Vieux 14/08/2007, 23h33   #1
Membre du Club
 
Inscription : janvier 2007
Messages : 196
Détails du profil
Informations forums :
Inscription : janvier 2007
Messages : 196
Points : 54
Points : 54
Par défaut [Sécurité] problème sur session_start : les entêtes ont déjà été envoyées

Bonjour, je suis entrain de coder un site d'élevage de chevaux, le site est quasiment fini, mais une petite erreur m'empêche en quelques sortes de le terminer !

En effet, j'ai du modifier un include dans la page qui ouvre la session !

En haut de page j'ai bien mit session_start comme ceci :
Code :
1
2
3
4
5
 <?
session_start();
 
require('config.inc.php');
...
Et quand j'ai modifier un include cela m'as affiché :
Citation:
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/bill/web/www/site/modules.php:1) in /home/bill/web/www/site/modules.php on line 2

Je sais absolument pas comment je peux faire pour réparer celui-ci, j'ai créer le répertoire sessions au cas s'ou dans la racine du site avec les permissions 777.

J'ai effacer l'include mais cela ne change rien !

Pouvez-vous m'aider à régler ce petit détail.


Bonne soirée a tous !
toulousain3117 est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 15/08/2007, 00h09   #2
Membre émérite
 
Avatar de sharrascript
 
Homme Franck
Développeur Web indépendant
Inscription : avril 2007
Messages : 678
Détails du profil
Informations personnelles :
Nom : Homme Franck
Âge : 31
Localisation : France, Rhône (Rhône Alpes)

Informations professionnelles :
Activité : Développeur Web indépendant

Informations forums :
Inscription : avril 2007
Messages : 678
Points : 900
Points : 900
bonsoir,

Heu... Y a t il un espace avant ton <? sur ta page comme dans l'exemple??

Car le soucis peu venir de là

Et sinon, ouvre tes balise php ainsi:

++
__________________
LudiKreation Pour un web ludique et son Blog | CapRumbo pour un peu d'évasion | ChaOdisiaque Club Passion Rôliste |SierrElben le Jeu de rôle
sharrascript est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 15/08/2007, 01h47   #3
Membre chevronné
 
David DRAPEAU
Consultant OpenERP
Inscription : juin 2003
Messages : 807
Détails du profil
Informations personnelles :
Nom : David DRAPEAU

Informations professionnelles :
Activité : Consultant OpenERP

Informations forums :
Inscription : juin 2003
Messages : 807
Points : 728
Points : 728
Envoyer un message via MSN à zyongh Envoyer un message via Skype™ à zyongh
Par défaut ou balise fermante

Le problème peut venir aussi de la balise fermante. Il ne faut pas de ligne blanche après ?> sinon il génère aussi un message d'erreur. Le genre de faille dont j'ai mis un bon bout de temps à trouver.
zyongh est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 15/08/2007, 09h19   #4
Membre du Club
 
Inscription : janvier 2007
Messages : 196
Détails du profil
Informations forums :
Inscription : janvier 2007
Messages : 196
Points : 54
Points : 54
oui j'ai bien mit le <? au debut tout comme dans l'exemple, l'exemple fait parti de ma page !

voilà la page entiere :

Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
<?php
session_start();
 
require('config.inc.php');
 
 
$page = $_GET['page'];
if($page == "Login")
{
require('modules/login_erreur.php');
}
 
if($page == "Deco")
{
	if (isset($_SESSION['logged']) && $_SESSION['logged'] == true)
	{
	   //On modifie la valeur de $_SESSION['logged'], qui devient false.
	   $_SESSION['logged'] = false;
	   $_SESSION['pseudo'] = NULL;
	   $_SESSION['id'] = NULL;
	   //Redirection.
	   header("location: index.php");
 
	}
	else
	{
	   echo 'Erreur : vous devez être connecté pour vous déconnecter !';
	}
}
?>
<html>
 
	<head>
		<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
		<link href="parametres.css" type="text/css" rel="stylesheet">
		<? if($page == "forum") { ?>
		<link href="modules/forum/forum.css" type="text/css" rel="stylesheet">
		<? } ?>
		<title>Horse Virtuel :: <? echo $page; ?></title>
		<? if($page == "inscription")
{
?>
		<script type="text/javascript" language="javascript" src="codes/email.js"></script>
		<?
}
if($page == "messagerie")
{
?>
		<script type="text/javascript" language="javascript" src="codes/codes.js"></script>
		<?
}
?>
		<style type="text/css">
<!--
.Style2 {
	font-size: 14px;
	font-weight: bold;
}
-->
</style>
		<? if($action == 'poster') { ?>
		<script type="text/javascript" src="modules/forum/bbcode.js"></script>
		<? } ?>
	</head>
 
	<body bgcolor="#6498C1" topmargin="0" bottommargin="0">
		<table width="880" border="0" cellspacing="0" cellpadding="0" align="center">
			<tr>
				<td valign="top"><!-- DEBUT DU HEADER -->
					<table width="900" border="0" cellspacing="0" cellpadding="0" align="center">
						<tr>
							<td valign="top">
								<table width="900" border="0" cellspacing="0" cellpadding="0">
									<tr>
										<td valign="top" width="14" height="80" background="img/bg01.PNG">
											<table width="900" border="0" cellspacing="0" cellpadding="0">
												<tr>
													<td><object title="banniere" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" height="307" width="900">
															<param name="movie" value="img/ban.swf">
															<param name="quality" value="high">
															<embed height="307" pluginspage="http://www.macromedia.com/go/getflashplayer" src="img/ban.swf" quality="high" type="application/x-shockwave-flash" width="900"> 
														</object></td>
												</tr>
												<tr>
													<td>
														<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
															<tr height="1">
																<td width="97%" height="1" background="img/haut_menu01.PNG"></td>
															</tr>
														</table>
													</td>
												</tr>
											</table>
										</td>
									</tr>
								</table>
							</td>
						</tr>
					</table>
 
					<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
						<tr>
							<td valign="top" width="200" background="img/colonG.jpg">
								<table width="185" border="0" cellspacing="0" cellpadding="0" align="center">
 
						<tr>
							<td valign="top"><br>
								<table width="70%" border="0" align="center">
									<tr>
										<td valign="top"></td>
									</tr>
								</table>
								<br>
							</td>
						</tr>
					</table>
								<br>
								<table width="185" border="0" cellspacing="0" cellpadding="0" align="center">
									<tr>
										<td valign="top"><br>
											<div align="center">
												<?
include('inc/menu_joueur.php');
?></div>
											<br>
										</td>
									</tr>
								</table>
							</td>
						</tr>
					</table>
					<br>
					<br>
					<table width="185" border="0" cellspacing="0" cellpadding="0" align="center">
						<tr height="106">
							<td height="106" background="img/haut_menu01.png"><b>
									<div align="center">
										Divers</div>
								</b></td>
						</tr>
						<tr>
							<td valign="top"><br>
								<table width="70%" border="0" align="center">
									<tr>
										<td valign="top"><? include('inc/divers.php'); ?></td>
									</tr>
								</table>
								<br>
							</td>
						</tr>
					</table>
				</td>
				<td style="background-image:url(img/bg.jpg); background-repeat:no-repeat; background-position:bottom;" valign="top" bgcolor="#6498c1" width="480">
					<div style="padding:5px;" align="center">
						&nbsp;
						<table width="462" border="0" cellspacing="2" cellpadding="0">
							<tr>
								<td><a href="modules.php?page=jeu"><img src="img/ptiteimage/petitbouton_01.png" alt="" height="32" width="32" border="0"></a></td>
								<td><a href="modules.php?page=ecurie"><img src="img/ptiteimage/petitbouton_02.png" alt="" height="32" width="32" border="0"></a></td>
								<td><a href="modules.php?page=veterinaire"><img src="img/ptiteimage/petitbouton_03.png" alt="" height="32" width="32" border="0"></a></td>
								<td><a href="modules.php?page=entrainement"><img src="img/ptiteimage/petitbouton_04.png" alt="" height="32" width="32" border="0"></a></td>
								<td><a href="modules.php?page=marechal ferrand"><img src="img/ptiteimage/petitbouton_05.png" alt="" height="32" width="32" border="0"></a></td>
								<td><a href="modules.php?page=course"><img src="img/ptiteimage/petitbouton_06.png" alt="" height="32" width="32" border="0"></a></td>
								<td><a href="modules.php?page=concour"><img src="img/ptiteimage/petitbouton_07.png" alt="" height="32" width="32" border="0"></a></td>
								<td><a href="modules.php?page=achat-vente"><img src="img/ptiteimage/petitbouton_08.png" alt="" height="32" width="32" border="0"></a></td>
								<td><a href="modules.php?page=pres"><img src="img/ptiteimage/petitbouton_09.png" alt="" height="32" width="32" border="0"></a></td>
								<td><a href="modules.php?page=balade"><img src="img/ptiteimage/petitbouton_10.png" alt="" height="32" width="32" border="0"></a></td>
								<td><a href="modules.php?page=pouvoirs"><img src="img/ptiteimage/petitbouton_11.png" alt="" height="32" width="32" border="0"></a></td>
							</tr>
						</table>
					</div>
					<div style="padding:5px;">
						<div align="center">
							<table border="0" cellspacing="2" cellpadding="0">
								<tr height="106">
									<td width="192" height="106" background="img/haut_menu01.png">
										<div align="center">
											<span class="Style2">Espace <? echo $page; ?></span><br>
										</div>
									</td>
								</tr>
							</table>
							<br>
						</div>
						<p></p>
					</div>
					<div style="padding:5px;" align="center">
						<table width="420" border="0" cellspacing="0" cellpadding="0">
							<tr height="10">
								<td bgcolor="#6498C1" height="10">
									<div align="center">
										</div>
								</td>
							</tr>
							<tr>
								<td bgcolor="#6498C1">
									<div align="center">
										<font color="#000000"><? include('modules/'.$page.'.php'); ?></font></div>
								</td>
							</tr>
							<tr height="15">
								<td bgcolor="#6498C1" height="15"></td>
							</tr>
						</table>
						<table width="110" border="0" cellspacing="0" cellpadding="0" cool gridx="16" gridy="16" height="81" showgridx showgridy usegridx usegridy>
							<tr height="80">
								<td width="109" height="80"></td>
								<td width="1" height="80"><spacer type="block" width="1" height="80"></td>
							</tr>
							<tr height="1" cntrlrow>
								<td width="109" height="1"><spacer type="block" width="109" height="1"></td>
								<td width="1" height="1"></td>
							</tr>
						</table>
						<table width="462" border="0" cellspacing="2" cellpadding="0">
							<tr>
								<td><a href="modules.php?page=jeu"><img src="img/ptiteimage/petitbouton_01.png" alt="" height="32" width="32" border="0"></a></td>
								<td><a href="modules.php?page=ecurie"><img src="img/ptiteimage/petitbouton_02.png" alt="" height="32" width="32" border="0"></a></td>
								<td><a href="modules.php?page=veterinaire"><img src="img/ptiteimage/petitbouton_03.png" alt="" height="32" width="32" border="0"></a></td>
								<td><a href="modules.php?page=entrainement"><img src="img/ptiteimage/petitbouton_04.png" alt="" height="32" width="32" border="0"></a></td>
								<td><a href="modules.php?page=marechal ferrand"><img src="img/ptiteimage/petitbouton_05.png" alt="" height="32" width="32" border="0"></a></td>
								<td><a href="modules.php?page=course"><img src="img/ptiteimage/petitbouton_06.png" alt="" height="32" width="32" border="0"></a></td>
								<td><a href="modules.php?page=concour"><img src="img/ptiteimage/petitbouton_07.png" alt="" height="32" width="32" border="0"></a></td>
								<td><a href="modules.php?page=achat-vente"><img src="img/ptiteimage/petitbouton_08.png" alt="" height="32" width="32" border="0"></a></td>
								<td><a href="modules.php?page=pres"><img src="img/ptiteimage/petitbouton_09.png" alt="" height="32" width="32" border="0"></a></td>
								<td><a href="modules.php?page=balade"><img src="img/ptiteimage/petitbouton_10.png" alt="" height="32" width="32" border="0"></a></td>
								<td><a href="modules.php?page=pouvoirs"><img src="img/ptiteimage/petitbouton_11.png" alt="" height="32" width="32" border="0"></a></td>
							</tr>
						</table>
					</div>
				</td>
				<td valign="top" width="196" background="img/PTR_04.jpg"><table width="185" border="0" cellspacing="0" cellpadding="0" align="center">
						<tr height="106">
							<td height="106" background="img/haut_menu01.png"><b>
									<div align="center">
											Login</div>
								</b></td>
						</tr>
						<tr>
							<td valign="top"><br>
								<table width="70%" border="0" align="center">
									<tr>
										<td valign="top"><? include('inc/login.php'); ?></td>
									</tr>
								</table>
								<br>
							</td>
						</tr>
					</table><br><br>
					<table width="185" border="0" cellspacing="0" cellpadding="0" align="center">
						<tr height="106">
							<td height="106" background="img/haut_menu01.png"><b>
									<div align="center">
											Statistiques:</div>
								</b></td>
						</tr>
						<tr height="50">
							<td valign="top" height="50"><br>
								<table width="70%" border="0" align="center">
									<tr>
										<td valign="top"><? include('inc/stats.php'); ?></td>
									</tr>
								</table>
								<br>
							</td>
						</tr>
					</table>
					<br>
					<br>
					<table width="185" border="0" cellspacing="0" cellpadding="0" align="center">
						<tr height="106">
							<td height="106" background="img/haut_menu01.png"><b>
									<div align="center">
											Recherche</div>
								</b></td>
						</tr>
						<tr>
							<td valign="top"><br>
								<table width="70%" border="0" align="center">
									<tr>
										<td valign="top"><? include('inc/recherche.php'); ?></td>
									</tr>
								</table>
								<br>
							</td>
						</tr>
					</table>
					<br>
					<br>
					<table width="185" border="0" cellspacing="0" cellpadding="0" align="center">
						<tr height="106">
							<td height="106" background="img/haut_menu01.png"><b>
									<div align="center">
											Top 10!</div>
								</b></td>
						</tr>
						<tr>
							<td valign="top"><br>
								<table width="70%" border="0" align="center">
									<tr>
										<td valign="top"><? include('inc/top.php'); ?></td>
									</tr>
								</table>
								<br>
							</td>
						</tr>
					</table>
					</div></td>
			</tr>
			<tr height="22"><!-- PIED MERCI DE LAISSER LES LIENS -->
				<td style="background-color:#adb4cc; background-image:url(img/fin.PNG); background-repeat:no-repeat; padding-top:4px;" colspan="3" bgcolor="#6498c1" height="22">
					<div align="center">
						<font color="#6666ff"><b>Ce site a &eacute;t&eacute; declar&eacute; &agrave; la CNIL N&deg;1219421 </b></font></div>
				</td>
			</tr>
		</table>
	</body>
 
</html>
j'ai enlever les espace de la fin etc.. mais rien ne se passe
toulousain3117 est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 15/08/2007, 09h32   #5
Membre chevronné
 
David DRAPEAU
Consultant OpenERP
Inscription : juin 2003
Messages : 807
Détails du profil
Informations personnelles :
Nom : David DRAPEAU

Informations professionnelles :
Activité : Consultant OpenERP

Informations forums :
Inscription : juin 2003
Messages : 807
Points : 728
Points : 728
Envoyer un message via MSN à zyongh Envoyer un message via Skype™ à zyongh
Par défaut envoie moi ton fichier

poste le code du fichier config.inc.php s'il te plait que je fasse un test.
zyongh est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 15/08/2007, 09h54   #6
Membre du Club
 
Inscription : janvier 2007
Messages : 196
Détails du profil
Informations forums :
Inscription : janvier 2007
Messages : 196
Points : 54
Points : 54
voila le fichier config:

Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?
$host = 'localhost';
$username = 'username';
$password = 'pass';
$bdd_name = 'BDDname';
 
$nomdusite = 'Horse Virtuel';
$url = 'http://www.horsevirtuel.com/site/';
 
 
$ip = $_SERVER['REMOTE_ADDR'];
 
 
if(isset($_GET['parrain']))
{
$_SESSION['parrain'] = $_GET['parrain'];
}
 
if (isset($_SESSION['logged']) && $_SESSION['logged'] == true)
{
mysql_connect($host,$username,$password);
mysql_select_db($bdd_name);
 
$id = $_SESSION['id'];
$timestamp = time();
mysql_query('UPDATE `membres` SET `timestamp` = '.$timestamp.' WHERE `id` = '.$id.'');
 
// On rafraichit les données du pseudo etc... au cas ou il y'ai eu un changement
 
$sql = 'SELECT * FROM membres WHERE `id` = '.$id.' LIMIT 0,1';
$query = mysql_query($sql)or die(mysql_error());
$compte_infos_update = mysql_fetch_array($query);
 
$_SESSION['pseudo'] = $compte_infos_update['pseudo'];
$_SESSION['argent'] = $compte_infos_update['argent'];
$_SESSION['level'] = $compte_infos_update['admin'];
$_SESSION['points'] = $compte_infos_update['horsies'];
$_SESSION['last_co'] = $compte_infos_update['last_co'];
mysql_close();
}
?>
toulousain3117 est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 15/08/2007, 10h06   #7
Membre chevronné
 
David DRAPEAU
Consultant OpenERP
Inscription : juin 2003
Messages : 807
Détails du profil
Informations personnelles :
Nom : David DRAPEAU

Informations professionnelles :
Activité : Consultant OpenERP

Informations forums :
Inscription : juin 2003
Messages : 807
Points : 728
Points : 728
Envoyer un message via MSN à zyongh Envoyer un message via Skype™ à zyongh
Par défaut ligne blanche

Est-ce que tu as une ligne blanche après ta balise de fermeture (?>) de ton fichier config.inc.php? Vérifie aussi pour ton fichier inclus qui se trouve dans le répertoire modules.
zyongh est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 15/08/2007, 10h26   #8
Membre du Club
 
Inscription : janvier 2007
Messages : 196
Détails du profil
Informations forums :
Inscription : janvier 2007
Messages : 196
Points : 54
Points : 54
non aucune ligne page dans aucune pages dans le dossier inc et dans le fichier config
toulousain3117 est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 15/08/2007, 10h51   #9
Membre chevronné
 
David DRAPEAU
Consultant OpenERP
Inscription : juin 2003
Messages : 807
Détails du profil
Informations personnelles :
Nom : David DRAPEAU

Informations professionnelles :
Activité : Consultant OpenERP

Informations forums :
Inscription : juin 2003
Messages : 807
Points : 728
Points : 728
Envoyer un message via MSN à zyongh Envoyer un message via Skype™ à zyongh
Par défaut colle le code

Colle le code du fichier modules.php car le message de warning le concerne
zyongh est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 15/08/2007, 11h08   #10
Membre émérite
 
Avatar de sharrascript
 
Homme Franck
Développeur Web indépendant
Inscription : avril 2007
Messages : 678
Détails du profil
Informations personnelles :
Nom : Homme Franck
Âge : 31
Localisation : France, Rhône (Rhône Alpes)

Informations professionnelles :
Activité : Développeur Web indépendant

Informations forums :
Inscription : avril 2007
Messages : 678
Points : 900
Points : 900
re,

Met tout de même:

Code :
1
2
<?php
session_start();
au début de ton fichier config.php

++
__________________
LudiKreation Pour un web ludique et son Blog | CapRumbo pour un peu d'évasion | ChaOdisiaque Club Passion Rôliste |SierrElben le Jeu de rôle
sharrascript est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 15/08/2007, 11h13   #11
Membre du Club
 
Inscription : janvier 2007
Messages : 196
Détails du profil
Informations forums :
Inscription : janvier 2007
Messages : 196
Points : 54
Points : 54
modules.php est déjà sur le topic, c'est le premier code entier que j'ai envoyer
toulousain3117 est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 15/08/2007, 11h15   #12
Membre du Club
 
Inscription : janvier 2007
Messages : 196
Détails du profil
Informations forums :
Inscription : janvier 2007
Messages : 196
Points : 54
Points : 54
j'ai mit session-start(); au debut du fichier config mais rien ne se passe
toulousain3117 est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 15/08/2007, 11h19   #13
Membre chevronné
 
David DRAPEAU
Consultant OpenERP
Inscription : juin 2003
Messages : 807
Détails du profil
Informations personnelles :
Nom : David DRAPEAU

Informations professionnelles :
Activité : Consultant OpenERP

Informations forums :
Inscription : juin 2003
Messages : 807
Points : 728
Points : 728
Envoyer un message via MSN à zyongh Envoyer un message via Skype™ à zyongh
Par défaut regarde bien

Quand je regarde bien ton code il y a un caractère blanc (un appui sur barre espace) juste avant ta balise d'ouverture (<?), ce qui donne

Code :
1
2
 <?php
session_start();
au lieu de

Code :
1
2
<?php
session_start();
Vérifie bien que tu n'as pas ça aussi dans ton fichier modules.php car vu ton message de warning, ce doit sûrement venir de là.
zyongh est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 15/08/2007, 11h21   #14
Membre émérite
 
Avatar de sharrascript
 
Homme Franck
Développeur Web indépendant
Inscription : avril 2007
Messages : 678
Détails du profil
Informations personnelles :
Nom : Homme Franck
Âge : 31
Localisation : France, Rhône (Rhône Alpes)

Informations professionnelles :
Activité : Développeur Web indépendant

Informations forums :
Inscription : avril 2007
Messages : 678
Points : 900
Points : 900
C'est même une certitude^^

Regarde sur ce lien et fait toutes les vérif

++
__________________
LudiKreation Pour un web ludique et son Blog | CapRumbo pour un peu d'évasion | ChaOdisiaque Club Passion Rôliste |SierrElben le Jeu de rôle
sharrascript est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 15/08/2007, 11h23   #15
Membre chevronné
 
David DRAPEAU
Consultant OpenERP
Inscription : juin 2003
Messages : 807
Détails du profil
Informations personnelles :
Nom : David DRAPEAU

Informations professionnelles :
Activité : Consultant OpenERP

Informations forums :
Inscription : juin 2003
Messages : 807
Points : 728
Points : 728
Envoyer un message via MSN à zyongh Envoyer un message via Skype™ à zyongh
Par défaut c'est évident

Citation:
Envoyé par toulousain3117
j'ai mit session-start(); au debut du fichier config mais rien ne se passe
C'est sûr que ça change rien puis que tu as appelé session_start() avant ton require au fichier config.php. Ton fichier config.php est exécuté dans module.php (puisque appelé par celui-ci) et non à part. Il prend donc en compte le session_start() du module.php
zyongh est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 15/08/2007, 11h28   #16
Membre émérite
 
Avatar de sharrascript
 
Homme Franck
Développeur Web indépendant
Inscription : avril 2007
Messages : 678
Détails du profil
Informations personnelles :
Nom : Homme Franck
Âge : 31
Localisation : France, Rhône (Rhône Alpes)

Informations professionnelles :
Activité : Développeur Web indépendant

Informations forums :
Inscription : avril 2007
Messages : 678
Points : 900
Points : 900
Citation:
C'est sûr que ça change rien puis que tu as appelé session_start() avant ton require au fichier config.php. Ton fichier config.php est exécuté dans module.php (puisque appelé par celui-ci) et non à part. Il prend donc en compte le session_start() du module.php
Tu en est sûr à 100%??

Moi je ne le suis pas, car j'ai eu certains soucis et selon la config de php ça change. Avant je pensais comme toi, mais j'ai dû créer un site hébergé chez free et je t'assure que les includes ne prenaient pas en compte le session_start, il fallait que je l'utilise sur chaque page avec des sessions, j'ai galéré un moment avant d'avoir trouvé le pb^^... Mais j'me trompe peut être... La logique voudrait que tu ai raison

++
__________________
LudiKreation Pour un web ludique et son Blog | CapRumbo pour un peu d'évasion | ChaOdisiaque Club Passion Rôliste |SierrElben le Jeu de rôle
sharrascript est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 15/08/2007, 11h34   #17
Membre chevronné
 
David DRAPEAU
Consultant OpenERP
Inscription : juin 2003
Messages : 807
Détails du profil
Informations personnelles :
Nom : David DRAPEAU

Informations professionnelles :
Activité : Consultant OpenERP

Informations forums :
Inscription : juin 2003
Messages : 807
Points : 728
Points : 728
Envoyer un message via MSN à zyongh Envoyer un message via Skype™ à zyongh
Par défaut et toi???

Citation:
Envoyé par sharrascript
Tu en est sûr à 100%?? (...)
Etre sûr à 100%, c'est croire en la perfection. Je ne crois ni en la perfection, ni aux hasards et aux coïncidences. Je ne suis jamais sûr de rien.

Et toi, es-tu sûr à 100% que le problème venait de la configuration de Free?
Ce qui ne serait guère étonnant vu leur incompétence
zyongh est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 15/08/2007, 11h40   #18
Membre émérite
 
Avatar de sharrascript
 
Homme Franck
Développeur Web indépendant
Inscription : avril 2007
Messages : 678
Détails du profil
Informations personnelles :
Nom : Homme Franck
Âge : 31
Localisation : France, Rhône (Rhône Alpes)

Informations professionnelles :
Activité : Développeur Web indépendant

Informations forums :
Inscription : avril 2007
Messages : 678
Points : 900
Points : 900
Citation:
Et toi, es-tu sûr à 100% que le problème venait de la configuration de Free?
Tout ce que je peux dire c'est qu'en local, good. Sur mon hébergeur, good. Mais une fois chez free, pas good^^

Citation:
Ce qui ne serait guère étonnant vu leur incompétence
Certes, mais pour un service gratuit, a t on vraiment le droit de se plaindre

Hehe, mais je ne vais pas faire de HS, j'attends des nouvelles de notre ami toulousain^^
__________________
LudiKreation Pour un web ludique et son Blog | CapRumbo pour un peu d'évasion | ChaOdisiaque Club Passion Rôliste |SierrElben le Jeu de rôle
sharrascript est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 15/08/2007, 12h34   #19
Membre chevronné
 
David DRAPEAU
Consultant OpenERP
Inscription : juin 2003
Messages : 807
Détails du profil
Informations personnelles :
Nom : David DRAPEAU

Informations professionnelles :
Activité : Consultant OpenERP

Informations forums :
Inscription : juin 2003
Messages : 807
Points : 728
Points : 728
Envoyer un message via MSN à zyongh Envoyer un message via Skype™ à zyongh
Par défaut tu as raison

Citation:
Envoyé par sharrascript
Hehe, mais je ne vais pas faire de HS, j'attends des nouvelles de notre ami toulousain^^
Entièrement d'accord avec toi
zyongh est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 15/08/2007, 13h08   #20
Membre du Club
 
Inscription : janvier 2007
Messages : 196
Détails du profil
Informations forums :
Inscription : janvier 2007
Messages : 196
Points : 54
Points : 54
non je viens de verifier aucun espace avant la balise (<?php ) l'espace que tu as vue c'est surement un espace que j'ai mit dans les balise codes sinon aucun espace dans modules.php
toulousain3117 est déconnecté   Envoyer un message privé Réponse avec citation 00
Réponse Proposer ce sujet en actualité Cette discussion est résolue.
Outils de la discussion



Fuseau horaire GMT +2. Il est actuellement 04h45.


 
 
 
 
Partenaires

Hébergement Web