php-general | 2001062
Date: 06/21/01
- Next message: news.php.net: "[PHP] Problem with session_is_registered"
- Previous message: infoz: "Re: [PHP] Another Template Engine (code)"
- Next in thread: dcoleman: "Re: [PHP] javascript label inside php code."
- Reply: dcoleman: "Re: [PHP] javascript label inside php code."
- Reply: Rasmus Lerdorf: "Re: [PHP] javascript label inside php code."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Warning: Cannot add header information - headers already sent by (output started
I understand that one of the reasons for this erro message is if their is a trailing space after a ?>. I have some PHP code which produces javascript rollover code. Above this there are a few includes referencing database and authorization files. Then I there is this peice of code
finish of start code
<?
$page=getenv(SCRIPT_NAME) ;
$page = split( "/", $page, 3 );
$page = "." . $page[4];
$page = split( "\.", $page, 2);
$page = $page[1];
?>
<script language="JavaScript">
<!-- This script controls the rollovers in the menu area
if (document.images) {
<?
etc etc start of next code
It is this break which produces the error code. Is it possible to place the <script language="JavaScript"> into a piece of php code to fix this error? Or is there another method?
Thanks in advance.
Andrew
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: news.php.net: "[PHP] Problem with session_is_registered"
- Previous message: infoz: "Re: [PHP] Another Template Engine (code)"
- Next in thread: dcoleman: "Re: [PHP] javascript label inside php code."
- Reply: dcoleman: "Re: [PHP] javascript label inside php code."
- Reply: Rasmus Lerdorf: "Re: [PHP] javascript label inside php code."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

