At 03:16 AM 1/30/2004, Freedomware wrote:
I'm still fairly new to PHP, so there may be a simple fix for my relatively trivial complaint.

I'm using an included page as a head section. It works fine, except that when preview a page and view the source, all the style sheets are displayed on one looooong line, like this:

</script><link href="../../css/ref.css" rel="stylesheet" type="text/css"><link href="../../css/na/a1.css" rel="stylesheet" type="text/css" /><link href=".css" rel="stylesheet" type="text/css" /><link href="../../css/nations.css" rel="alternate stylesheet" type="text/css" title="Nations" />

It looks like they won't scroll across THIS page, so here's a more clear example:

<stylesheet1><stylesheet2><stylesheet3><stylesheet4>

You need a \n at the end of each line inside the quote like echo "<stylesheet>\n";

\n is newline
-Dave

What I want is a normal style sheet display, like this:

<stylesheet1>
<stylesheet2>
<stylesheet3>
<stylesheet4>

Do you know what causes this and if there's a fix? I posted some code from the head section and main page below.

Thanks!


* * * * * * * * * *


HEAD SECTION (included page; ../../includes/ref/head.php)

<?php
$todayDate = date("m-d-Y");
echo '<title>Freedomware &gt; ' . $myname . '</title>';
echo '<meta name="description" content="' . $myname . ' versus Microsoft" />';
echo '<meta name="keywords" content="' . $myname . ' versus Microsoft" />';
echo '<meta name="mssmarttagspreventparsing" content="true" />';
echo '<meta http-equiv="content-Type" content="text/html; charset=iso-8859-1" />';
echo '<meta name="author" content="David Blomstrom" />';
echo '<script src="' . $periods . 'js/swapclass.js" type="text/javascript"></script>';
echo '<script language="JavaScript" src="' . $periods . 'js/sort.js"></script>';
echo '<script language="JavaScript" src="' . $periods . 'js/ss.js"></script>';
echo '<script language="JavaScript" type="text/JavaScript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</script>';
echo '<link href="' . $periods . 'css/ref.css" rel="stylesheet" type="text/css">';
if($includea1 == TRUE){
echo '<link href="' . $periods . 'css/' . $continentcode . '/a1.css" rel="stylesheet" type="text/css" />';
}
echo '<link href="' . $mycss . '.css" rel="stylesheet" type="text/css" />';
echo '<link href="' . $periods . 'css/nations.css" rel="alternate stylesheet" type="text/css" title="Nations" />';
echo '<link href="' . $periods . 'css/themes/peace.css" rel="alternate stylesheet" type="text/css" title="Peace" />';
echo '<link href="' . $periods . 'css/themes/war.css" rel="alternate stylesheet" type="text/css" title="War" />';
echo '<link href="' . $periods . 'css/themes/pat' . $countrycode . '.css" rel="alternate stylesheet" type="text/css" title="Patriotism" />';
echo '<link href="' . $periods . 'css/themes/nationalism.css" rel="alternate stylesheet" type="text/css" title="Nationalism" />';
echo '<link href="' . $periods . 'css/themes/corporate.css" rel="alternate stylesheet" type="text/css" title="Corporate" />';
echo '<link href="' . $periods . 'css/themes/conspiracy.css" rel="alternate stylesheet" type="text/css" title="Conspiracy" />';
echo '<link href="' . $periods . 'css/themes/media.css" rel="alternate stylesheet" type="text/css" title="Media" />';
echo '<link href="' . $periods . 'css/themes/atlantic.css" rel="alternate stylesheet" type="text/css" title="Atlantic" />';
echo '<link href="' . $periods . 'css/themes/indian.css" rel="alternate stylesheet" type="text/css" title="Indian" />';
echo '<link rel="SHORTCUT ICON" href="../../../../us/aaa/favicon.ico" />';
?>



* * * * * * * * * * MAIN PAGE

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
<?php $myname = 'Alaska'; $mynickname = 'Land of the Midnight Sun'; $mycode = 'ak'; $mywebring = '/world/na/us/ak/'; $myregion = 'north'; $mycountry = 'United States'; $mycontinent = 'North America'; $countrycode = 'us'; $continentcode = 'na'; $periods = '../../'; $tlperiods = '../'; $includea1 = TRUE; include ("../../includes/ref/head.php"); ?> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to