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 20/03/2007, 14h35   #1
Invité de passage
 
Inscription : mai 2005
Messages : 1
Détails du profil
Informations forums :
Inscription : mai 2005
Messages : 1
Points : 0
Points : 0
Envoyer un message via MSN à mkourkch
Par défaut Problème de redirection

Bonjour
excusez moi j'ai un programme qui marche dans une arborescence et ne marche pas dans une autre.

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
<?php
session_start();
$email = array('prince'=>'prince@crownenterprises.net',
'highness-prince' => 'highness-prince@skynet.be',
'highness.prince'=> 'highness.prince@firstoceanicbank.com',
'canada' => 'canada@crownenterprises.net',
'iran' => 'iran@crownenterprises.net',
'spain' => 'spain@crownenterprises.net',
'holland' => 'holland@crownenterprises.net',
'saudi' => 'saudi@crownenterprises.net',
'uae' => 'uae@crownenterprises.net',
'usa' => 'usa@crownenterprises.net',
'asia' => 'asia@crownenterprises.net',
'africa' => 'africa@crownenterprises.net',
'info' => 'info@crownenterprises.net',
'europe' => 'europe@crownenterprises.net',
'belgium' => 'belgium@crownenterprises.net',
'kuwait' => 'kuwait@crownenterprises.net',
'fahad' => 'fahad@crownenterprises.net',
'ali' => 'ali@crownenterprises.net',
'awkaad' => 'awkaad@crownenterprises.net',
'thailand' => 'thailand@crownenterprises.net',
'gfp' => 'gfp@crownenterprises.net');
if ( (!isset($_GET['mail'])) || (!isset($email[$_GET['mail']])) ) {
      header("location: http://www.crownenterprises.net/arabic/index.php");
		 exit; 
}
?>
je developpe un site multilingue ce meme programme marche pour le français et anglais la seule difference pour ce bout de code est le chemin qui est dans location de la fonction header. J'ai essayé de faire ce header vers le site en arabe ça marche ds l'autre arborescence .
Le message d'erreur est :
Citation:
Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /var/www/vhosts/crownenterprises.net/httpdocs/arabic/contact_ar.php:1) in /var/www/vhosts/crownenterprises.net/httpdocs/arabic/contact_ar.php on line 2

Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/crownenterprises.net/httpdocs/arabic/contact_ar.php:1) in /var/www/vhosts/crownenterprises.net/httpdocs/arabic/contact_ar.php on line 25
il n y a rien avant <?php . C'est la premiere ligne est pas d'espace.

merci pour votre aide.
mkourkch est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 20/03/2007, 18h53   #2
Membre confirmé
 
Inscription : décembre 2006
Messages : 297
Détails du profil
Informations forums :
Inscription : décembre 2006
Messages : 297
Points : 248
Points : 248
ça arrive, ton fichier est inclue par un autre?
regarde avec un éditeur hexadécimal si des bits nulle ne sont pas aux tout début de ton fichier.
juJuv51 est déconnecté   Envoyer un message privé Réponse avec citation 00
Réponse Proposer ce sujet en actualité
Outils de la discussion



Fuseau horaire GMT +2. Il est actuellement 05h10.


 
 
 
 
Partenaires

Hébergement Web