Welcome to Coding : Sécurité Programmation Réseaux

Search   in  

 Create an Account Home | Submit News Your Account Content | Topics | Top 10  


Accueil
· Home
· Listing des Articles
· Top 10
· Repository des Exploits

Les sujets / parties
· C / C ++
· Visual Basic
· Asm
· Reseaux
· Java
· Securite
· Divers

Utile
· Listing des Articles

· Telecharger
· Le Forum
· Liens
· Proposer un article

Top20 des Downloads
· 1: Etude des reseaux generalites et protocoles
· 2: Cheval de troie en VB avec sources
· 3: Netcat 1.1
· 4: Keylogger
· 5: Etudes des reseaux hauts debits architectures et protocoles
· 6: Ecoute de port
· 7: Etude du Smart Spoofing
· 8: Win Packet Capture Utils
· 9: Tutorial on Traffic Interception on Switched Lan using ARP spoofing
· 10: Cours de C

User Info
Welcome, Anonymous
Nickname
Password
(Register)
Membership:
Latest: trapcodien
New Today: 1
New Yesterday: 0
Overall: 2207

People Online:
Visitors: 43
Members: 1
Total: 44

Online Now:
01: trapcodien

  
Coding : Sécurité Programmation Réseaux: Forums

Coding :: View topic - header , help !
 Forum FAQForum FAQ   SearchSearch   UsergroupsUsergroups   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

header , help !

 
Post new topic   Reply to topic    Coding Forum Index -> Php
View previous topic :: View next topic  
Author Message
alainL
Guest





PostPosted: Sun Jul 06, 2008 4:10 am    Post subject: header , help ! Reply with quote

Bonjour,
Je ne m'en sors pas malgré plusieurs visites à la FAQ et à des sites (en
français)
Voilà:
je veux effectuer une redirection de mon ancien site hébergé chez
Club-internet vers mon nouvel hébergeur chez qui j'ai pris un nom de
domaine.

Un fichier .htaccess à la racine ne passe pas.
Quant au header, je l'ai essayé un peu partout dans le code de l'index
(ou d'autres fichiers) mais ça ne va pas mieux Sad(((
_________________________________________________________________________
!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<?php header("HTTP/1.1 301 Moved Permanently"); header("Location:
http://autourdalos.fr/"); exit; ?>
<html lang="fr">
<head>
...
<meta name="etc....
_______________________________________________________________________
Voici le message d'erreur :

----------------------------------------------------------------------
Warning: Cannot modify header information - headers already sent by
(output started at /index.php:5) in /index.php on line 2
---------------------------------------------------------------------
Y aurait-il déjà un header utilisé par club-int (les URL des pages perso
ont changé il y a qqs années )
Merci pour vos conseils

alain

--
Alain L

Mon village en Haute Soule : http://autourdalos.fr
Carnet de voyages: http://jarailet.club.fr/Randobal
Back to top
Olivier Miakinen
Guest





PostPosted: Sun Jul 06, 2008 4:10 am    Post subject: Re: header , help ! Reply with quote

Bonjour,

Le 05/07/2008 18:26, alainL a écrit :
Quote:

Je ne m'en sors pas malgré plusieurs visites à la FAQ et à des sites (en
français)

Ah ?

Quote:
DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
?php header("HTTP/1.1 301 Moved Permanently"); header("Location:
http://autourdalos.fr/"); exit; ?

Pourtant, c'est probablement *la* question la plus souvent posée, et on
la trouve en bonne place dans la FAQ en cherchant « header » :
<http://faqfclphp.free.fr/#rub2.12>

Pas la peine d'ailleurs d'aller lire la FAQ, la doc suffit :
<cit. http://fr2.php.net/header>
N'oubliez jamais que header() doit être appelée avant que le moindre
contenu ne soit envoyé, soit par des lignes HTML habituelles dans le
fichier, soit par des affichages PHP.
</cit.>
Back to top
alainL
Guest





PostPosted: Sun Jul 06, 2008 1:10 pm    Post subject: Re: header , help ! Reply with quote

Olivier Miakinen a écrit :
..........
Quote:
DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
?php header("HTTP/1.1 301 Moved Permanently"); header("Location:
http://autourdalos.fr/"); exit; ?

Pourtant, c'est probablement *la* question la plus souvent posée, et on
la trouve en bonne place dans la FAQ en cherchant « header » :
http://faqfclphp.free.fr/#rub2.12

Pas la peine d'ailleurs d'aller lire la FAQ, la doc suffit :
cit. http://fr2.php.net/header
N'oubliez jamais que header() doit être appelée avant que le moindre
contenu ne soit envoyé, soit par des lignes HTML habituelles dans le
fichier, soit par des affichages PHP.
/cit.

J'avais vu ces deux docs, mais, persuadé que la page devait commencer
par le Doctype, j'avais essayé le header partout sauf .. avant le Doctype...
Merci.
--
Alain L

Mon village en Haute Soule : http://autourdalos.fr
Carnet de voyages: http://jarailet.club.fr/Randobal
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Coding Forum Index -> Php All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Powered by phpBB © 2001, 2005 phpBB Group
PHP-Nuke Copyright © 2005 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.
Page Generation: 0.37 Seconds