You are here: Quite a basic question « PHP « IT news, forums, messages
Quite a basic question

Posted by Mαrio Gamito on 03/08/05 17:18

Hi,

This is quite a very basic question, but i think the code following my
signature should work.
Instead, i get a
"Warning: Cannot modify header information - headers already sent by
(output started at /home/vhosts/dte/cv/register_action.php:10) in
/home/vhosts/dte/cv/register_action.php on line 12"

and no redirection :(

How can i solve this ?
Any help would be apreciated.

Warm Regards,
MΓ‘rio Gamito

<?php

$hostname = gethostbyaddr($_SERVER['REMOTE_ADDR']);
$sub_domain = explode (".", $hostname);
if ($sub_domain[1] != 'dte') {
echo"
<script language=\"JavaScript\">
window.open (\"http://www.google.com\", \"mywindow\", \"status=1,
toolbar=0, resizable=0,
width=200, height=200\");
</script>";
}
header("Location: http://www.dte.ua.pt/cv/");
?>

<HTML>
<HEAD>
<TITLE>GestΓ£o de currΓ­culos do DDTE</TITLE>
(...)

 

Navigation:

[Reply to this message]


УдалСнная Ρ€Π°Π±ΠΎΡ‚Π° для программистов  •  Как Π·Π°Ρ€Π°Π±ΠΎΡ‚Π°Ρ‚ΡŒ Π½Π° Google AdSense  •  England, UK  •  ΡΡ‚Π°Ρ‚ΡŒΠΈ Π½Π° английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация