renegeorges
Messages postés2Date d'inscriptionvendredi 24 septembre 2004StatutMembreDernière intervention15 avril 2010
-
15 avril 2010 à 12:37
kohntark
Messages postés3705Date d'inscriptionlundi 5 juillet 2004StatutMembreDernière intervention27 avril 2012
-
19 avril 2010 à 17:46
Bonjour,
J’ai un problème avec un petit script de géolocalisation qui fonctionne très bien en local mais il y a cette erreur chez mon hébergeur :
Warning: Cannot modify header information - headers already sent by (output started at …/site/verif_adresse.php:2) in …/site/verif_adresse.php on line 44
Warning: Cannot modify header information - headers already sent by (output started at …/site/verif_adresse.php:2) in ../site/verif_adresse.php on line 45
<?php
$address = $adresse;
$postalCode = $code_postal;
$city = $ville;
$url = 'http://maps.google.fr/maps?f=q&hl=fr&q='.urlencode($address).','.urlencode(' '.$postalCode.' '.$city);
header('HTTP/1.1 204 No Content');
header('Location: '.$url);}?>
(ligne n° 41)<?php } ?>
Fin du script
Il n’y a pas de lignes 44 et 45 le script fonctionne très bien en local Easyphp 5.30
Php.in en local : auto_prepend_file Php.in hébergeur : auto_prepend_file /usr/local/lib/include_disable_php.php