NYCPHP Meetup

NYPHP.org

[nycphp-talk] A bit long, I hope not too long

Cassidy, Michael Michael_Cassidy at advancemags.com
Fri Jul 22 16:54:26 EDT 2005


This is a bit long.
 
I¹ve just started messing around with PHP; so I stuff several different
thingies..
I¹ve run into a problem with IE MAC 5.2.
On all my other browsers this page works but on IE MAC though the source
code looks identical to the other browsers the link showing what page you
are reading is not turning red.
 
I don¹t understand.
Does IE MAC have problems with:
 
#index #nav p  #index-link, #test3 #nav p #test3-link, #assie2 #nav p
#assie2-link, #assie_discuss #nav p  #assie_discuss-link{
      color: red !important;
}
 
Thanks.
 
 
The relevant CSS:
 
#nav p {
      font-family: Georgia, Times, serif;
      font-size: 100%;
      line-height: 2px;
      padding-left: 2em;
      color: #024;
}
 
#index #nav p  #index-link, #test3 #nav p #test3-link, #assie2 #nav p
#assie2-link, #assie_discuss #nav p  #assie_discuss-link{
      color: red !important;
}
 
#nav p a:link {
      text-decoration: none;
      display: inline;
      color: #024;
}
 
The page [test3.php] doing the calls:
 
<?php
$browser= $_SERVER['HTTP_USER_AGENT'];
 
$version= "5\.23";
$sys= "MAC";
$app= "MSIE";
 
if (Eregi($app, $browser) && Eregi($version, "$browser") && Eregi($sys,
"$browser")) {include "head2.php";}
      else  {include "head2.php";}
 
?>
 
<p> This is the body of the page.</p>
<h1>The Page.</h1>
 
<?php
$browser= $_SERVER['HTTP_USER_AGENT'];
 
echo "<p> $browser </p>";
?>
 
<p> This is the end of the body of the page.</p>
 
 
<?php
 
include "nav.inc";
?>
 
 
<?php
 
include "footer.inc";
?>
 
 
This is head2.php
 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>The page</title>
<link rel="stylesheet" type="text/css" href="h1b.css">
<link rel="stylesheet" type="text/css" href="nav2.css">
 
<?php
 
$temp= $_SERVER['REQUEST_URI'];
 
$temp= str_replace("/","","$temp");
 
$temp= str_replace(".php","","$temp");
 
$temp= '"' . $temp . '"';
 
echo "</head> <body id=$temp>";
 
?>
 
 
 
MAC IE 5.2 Source:
 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>The page</title>
<link rel="stylesheet" type="text/css" href="h1b.css">
<link rel="stylesheet" type="text/css" href="nav2.css">
 
</head> <body id="test3">
 
<p> This is the body of the page.</p>
<h1>The Page.</h1>
 
<p> Mozilla/4.0 (compatible; MSIE 5.23; Mac_PowerPC) </p>
<p> This is the end of the body of the page.</p>
 
 
<div id="nav">
<div id="outside">
<h4>Aussie Trains</h4>
<p><a href="trains1.html" id="test3-link">Spread one</a></p>
<p><a href="trains2.html" id="assie2-link">Spread two</a></p>
<p><a href="assietrains.html" id="assie_discuss-link">Discussion and
thumbnails</a></p>
 
<h4>Well Stories</h4>
<p><a href="xxx" id="assie_discuss-link">Aussie trains 6/05</a></p>
<p><a href="xxx">Caribbean Classics 7/05</a></p>
 
<h4>Other Sections</h4>
<p><a href="xxx">Cover</a></p>
<p><a href="xxx">TOC</a></p>
<p><a href="xxx">FOB</a></p>
<p><a href="xxx">WOM</a></p>
<p><a href="xxx">Stop Press</a></p>
<p><a href="xxx">P&amp;P</a></p>
 
<p><a href="xxx" id="index-link">Home</a></p>
 
</div>
</div>
 
 
 
<h2>Some footer type</h2>
</body>
</html>
 
Safari MAC Source:
 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>The page</title>
<link rel="stylesheet" type="text/css" href="h1b.css">
<link rel="stylesheet" type="text/css" href="nav2.css">
 
</head> <body id="test3">
 
<p> This is the body of the page.</p>
<h1>The Page.</h1>
 
<p> Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit/124 (KHTML,
like Gecko) Safari/125.1 </p>
<p> This is the end of the body of the page.</p>
 
 
<div id="nav">
<div id="outside">
<h4>Aussie Trains</h4>
<p><a href="trains1.html" id="test3-link">Spread one</a></p>
<p><a href="trains2.html" id="assie2-link">Spread two</a></p>
<p><a href="assietrains.html" id="assie_discuss-link">Discussion and
thumbnails</a></p>
 
<h4>Well Stories</h4>
<p><a href="xxx" id="assie_discuss-link">Aussie trains 6/05</a></p>
<p><a href="xxx">Caribbean Classics 7/05</a></p>
 
<h4>Other Sections</h4>
<p><a href="xxx">Cover</a></p>
<p><a href="xxx">TOC</a></p>
<p><a href="xxx">FOB</a></p>
<p><a href="xxx">WOM</a></p>
<p><a href="xxx">Stop Press</a></p>
<p><a href="xxx">P&amp;P</a></p>
 
<p><a href="xxx" id="index-link">Home</a></p>
 
</div>
</div>
 
 
 
<h2>Some footer type</h2>
</body>
</html>
 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20050722/e476ab27/attachment.html>


More information about the talk mailing list