Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
3009 connectés 

  FORUM HardWare.fr
  Programmation
  PHP

  pb de syntaxe

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

pb de syntaxe

n°439676
TFreechris
meurs pourriture communiste !
Posté le 26-06-2003 à 00:31:35  profilanswer
 

voila mon pb j obtiens ca :  
Parse error: parse error, unexpected T_STRING in /home/chris/login/login.php on line 16
 
et ma ligne 16 est :
header('location:afficher.php');
 
ou est mon erreur ? svp  
merci
ps: je debute en php :|

mood
Publicité
Posté le 26-06-2003 à 00:31:35  profilanswer
 

n°439678
HORNY-Gran​dcornu
grumf !
Posté le 26-06-2003 à 00:35:21  profilanswer
 

Header('Location: afficher.php');
 
un espace c'est bien aussi ;)

n°439679
TFreechris
meurs pourriture communiste !
Posté le 26-06-2003 à 00:37:48  profilanswer
 

euh ouhais aussi j ai essaye mais ca fait la meme erreur :(

n°439683
HORNY-Gran​dcornu
grumf !
Posté le 26-06-2003 à 00:43:09  profilanswer
 

tu peux mettre les lignes de code avoisinantes de la 16 ? Il se peut que ça vienne de là en fait...

n°439685
TFreechris
meurs pourriture communiste !
Posté le 26-06-2003 à 00:45:44  profilanswer
 

<?
$login_defini= "chriscool";
$password_defini= "plouf";
 
if ( $login == $login_defini && $password == $password_defini )
{
session_start();
 
session_register("login" );
session_register("password" )
 
header('location: afficher.php');
 
}
else{
print 'password ou login non valide';
 
}
 
?>

n°439687
Taiche
(╯°□°)╯︵ ┻━┻
Posté le 26-06-2003 à 00:47:00  profilanswer
 

Oublie pas le ; à la fin de tes lignes... :sarcastic:


---------------
Everyone thinks of changing the world, but no one thinks of changing himself  |  It is the peculiar quality of a fool to perceive the faults of others and to forget his own  |  Early clumsiness is not a verdict, it’s an essential ingredient.
n°439688
HORNY-Gran​dcornu
grumf !
Posté le 26-06-2003 à 00:47:12  profilanswer
 

;       après le session register password et ça devrait fonctionner au poil :d

n°439691
TFreechris
meurs pourriture communiste !
Posté le 26-06-2003 à 00:50:49  profilanswer
 

merci ;)

n°439692
TFreechris
meurs pourriture communiste !
Posté le 26-06-2003 à 00:53:00  profilanswer
 

ahhaha
maintenant j obtiens ca :
 
Warning: Cannot send session cookie - headers already sent by (output started at /home/chris/login/login.php:5) in /home/chris/login/login.php on line 11
 
Warning: Cannot send session cache limiter - headers already sent (output started at /home/chris/login/login.php:5) in /home/chris/login/login.php on line 11
 
Warning: Cannot add header information - headers already sent by (output started at /home/chris/login/login.php:5) in /home/chris/login/login.php on line 16
 
c t mieux avant :)
pouvez vous m expliquer svp ?

n°439696
uriel
blood pt.2
Posté le 26-06-2003 à 01:28:30  profilanswer
 

deja, c'est pas propre de mettre ton log et ton pass en dur comme ça, sert toi de ta base de données, super exemple :
 
http://www.toutestfacile.com/phpin [...] ionmembre4
 


---------------
IVG en france
mood
Publicité
Posté le 26-06-2003 à 01:28:30  profilanswer
 

n°440269
FlorentP
Posté le 26-06-2003 à 14:18:02  profilanswer
 

TFreechris a écrit :

ahhaha
maintenant j obtiens ca :
 
Warning: Cannot send session cookie - headers already sent by (output started at /home/chris/login/login.php:5) in /home/chris/login/login.php on line 11
 
Warning: Cannot send session cache limiter - headers already sent (output started at /home/chris/login/login.php:5) in /home/chris/login/login.php on line 11
 
Warning: Cannot add header information - headers already sent by (output started at /home/chris/login/login.php:5) in /home/chris/login/login.php on line 16
 
c t mieux avant :)
pouvez vous m expliquer svp ?
 

Tu a du texte (un espace compte) avant le "<" de "<? ..."


Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Programmation
  PHP

  pb de syntaxe

 

Sujets relatifs
[ASP syntaxe sql ]requete d'interrogations d'une base access (newbee)[ACCESS] Problème de syntaxe d'une requête !
[XML] Pb de syntaxe....problème de syntaxe sql
syntaxe[OCaml] Pb de syntaxe :/
[O Caml] Programmation d'un interpréteur - pb de syntaxe[JAVA] Une question sur la syntaxe..
Probleme de Syntaxe Requette Mysql[mysql]erreur de syntaxe mais ou ?
Plus de sujets relatifs à : pb de syntaxe


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR