begueradj
Messages postés273Date d'inscriptiondimanche 4 octobre 2009StatutMembreDernière intervention24 juin 2014
-
27 avril 2011 à 10:28
begueradj
Messages postés273Date d'inscriptiondimanche 4 octobre 2009StatutMembreDernière intervention24 juin 2014
-
27 avril 2011 à 17:37
Bonjour,
J'ai développé un script pour modifier une photo, lorsque je l'exécute ça marche bien, toutefois je m'apperçois de ce warning qui s'affiche à chaque fois que je modifie l'une de mes photos :
[b]Warning: Cannot modify header information - headers already sent by (output started at /home/efrait/www/issa-dz.com/admin/Includes/aheader.inc.php:8) in /hlocalhost/mywebsite/admin/modifiedportsphoto.php on line 34
/b
begueradj
Messages postés273Date d'inscriptiondimanche 4 octobre 2009StatutMembreDernière intervention24 juin 20149 27 avril 2011 à 10:30
je corrige, le warning est exactement le suivant:
[b]
Warning: Cannot modify header information - headers already sent by (output started at /localhost/mywebsite/admin/Includes/aheader.inc.php:8) in /hlocalhost/mywebsite/admin/modifiedportsphoto.php on line 34 /b
Morphinof
Messages postés255Date d'inscriptionvendredi 20 avril 2007StatutMembreDernière intervention 9 août 20134 27 avril 2011 à 11:54
Cannot modify header information - headers already sent by : tu essais de modifier le header de ta page sauf qu'il a deja ete envoye par le script aheader.inc.php, je supose que tu essayais de rediriger vers une autre page ^_^
Ce qu'il faut savoir aussi avec la modification des headers en php comme par exemple header('location: par_ici.php'); c'est qu'ils doivent etre appele avant tout autres ouput (echo, print etc.)
Comme tu peux le voir ca ne gene pas l'execution de ton script mais c'est pas une bonne chose d'avoir des warning comme ca.