IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Langage PHP Discussion :

Problème de redirection


Sujet :

Langage PHP

  1. #1
    Nouveau candidat au Club
    Inscrit en
    Mai 2005
    Messages
    1
    Détails du profil
    Informations forums :
    Inscription : Mai 2005
    Messages : 1
    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 : 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.

  2. #2
    Membre expérimenté
    Profil pro
    Inscrit en
    Décembre 2006
    Messages
    297
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Décembre 2006
    Messages : 297
    Par défaut
    ç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.

Discussions similaires

  1. Réponses: 4
    Dernier message: 25/04/2006, 17h16
  2. Problème de Redirection
    Par pirouette_07 dans le forum Apache
    Réponses: 1
    Dernier message: 30/03/2006, 14h50
  3. [Cookies] Problèmes de redirection
    Par mogway95 dans le forum Langage
    Réponses: 6
    Dernier message: 19/02/2006, 01h13
  4. Problème de redirection d'index
    Par Bluelane dans le forum Apache
    Réponses: 8
    Dernier message: 16/09/2005, 18h50
  5. Problème de redirection avec window.location
    Par Kosti dans le forum Général JavaScript
    Réponses: 6
    Dernier message: 30/11/2004, 19h31

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo