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

Code : Sélectionner tout - Visualiser dans une fenêtre à part
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 :
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.