Anon
05-01-2001, 12:39 PM
dear PHP Builder
hai.. my name nicky, now i learn php by my self so i have a little confuse in function header in php
i have one case like this :
in my index.php i have the sintax
----------- index.php -----------
include ("banner.html");
header (Location : $relative/view.php);
----------- banner.html ----------
<head>
<script language=javascript>
awmImageNames0=Array('awmData/dot.gif');
awmImages0=new Array();
*** the program i write in here is not complete ***
</script>
</head>
<body>
this is my page
</body>
----------------------------------
the program i make just like that, but when i run the program, i mean the php have a error like this "Warning: Cannot add header information - headers already sent by (output started at menu.php:5) in C:\HTTPD\HTDOCS\cart\index1.php on line 40"
i want to ask some question, how make the program can run without any error like i write upstair ?
how make both header i can use in my program
please tell me soon, thanks...
hai.. my name nicky, now i learn php by my self so i have a little confuse in function header in php
i have one case like this :
in my index.php i have the sintax
----------- index.php -----------
include ("banner.html");
header (Location : $relative/view.php);
----------- banner.html ----------
<head>
<script language=javascript>
awmImageNames0=Array('awmData/dot.gif');
awmImages0=new Array();
*** the program i write in here is not complete ***
</script>
</head>
<body>
this is my page
</body>
----------------------------------
the program i make just like that, but when i run the program, i mean the php have a error like this "Warning: Cannot add header information - headers already sent by (output started at menu.php:5) in C:\HTTPD\HTDOCS\cart\index1.php on line 40"
i want to ask some question, how make the program can run without any error like i write upstair ?
how make both header i can use in my program
please tell me soon, thanks...