probleme google maps (SE ubuntu 9.04)
salut à tous,
je voulais testé google maps dans une page php, 2 erruers sont affichées à l'execution du code :
Code:
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
| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script
src="http://maps.google.com/
maps?file=api&v=2.x&key=ABQIAAAA-FmwWtymTirhtm7NfiTl_xT2yXp_ZAY8_ufC3CFXhHIE1NvwkxQcDRlFJZYw9xRxk0aUhEYFBO090Q"
type="text/javascript"></script>
<title></title>
</head>
<body>
<?php
$address = "1, rue de la halle";
$postalCode = 50500;
$city = "Carentan";
$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);
?>
</body>
</html> |
et voici les erruers :
Code:
1 2 3
| Warning: Cannot modify header information - headers already sent by (output started at /var/www/cartographieANF/index.php:5) in /var/www/cartographieANF/index.php on line 20
Warning: Cannot modify header information - headers already sent by (output started at /var/www/cartographieANF/index.php:5) in /var/www/cartographieANF/index.php on line 21 |
Remarque : ce code marche tres bien sur windows et j'utilise le meme navigateur pour les 2 SE (firefox)