Warning: fopen(graphic_design/files/thread-1385-1.txt) [function.fopen]: failed to open stream: Permission denied in /graphic_design/global.php on line 421 file NOT opened
Is there a fix for this? -
In IE/MAC on my site I have a tab view but for some reason the tab's height is the height of the content? This is only in IE/MAC is there a fix for this? I'm really getting sick and tired of IE to the point that I just about want it to burn for eternity.
edit:
er http://www.8-media.com/temp/test1.html
Koobi
07-23-2004, 02:22 AM
I'm not too sure about fixing the CSS for IE Mac's...this is where reh3 would be helpful :D
But if there's no work around for this sort of thing, let me know and you can use a PHP browser sniffer so that you can attach the CSS you want according to what browser the user is using.
Ed Hall
07-23-2004, 07:07 AM
Bane >> I think I might just go with that.. cause I just learned how to have a seperate style sheet for IE/MAC only :)
Koobi
07-24-2004, 08:25 AM
Nice :D
Is it just PHP or another method? If it is, care to share what you have found out in your travels? :D
Ed Hall
07-24-2004, 12:27 PM
Nice :D
Is it just PHP or another method? If it is, care to share what you have found out in your travels? :D
yeah I can share it's actually quite simple but here is the code
/*\*//*/
**@import "ie5mac.css";
/**/
take out the stars next to @import
How it works
IE 5/MAC Reads
1./* Opens the first comment
2.\ Backslash Hack
3.*// Commented text (ignored)
4.*/ Closes first comment
5.@import… Applied as normal
6./**/ Open and close of second comment
other browsers read
1./* Opens the first comment
2.\ Commented text (ignored)
3.*/ Closes the first comment
4./* Opens the second comment
5./ @import… /* Commented text (ignored)
6.*/ Closes second comment
Koobi
07-25-2004, 07:57 PM
Hi ed,
That's great, thanks :) I will definitely keep that in mind, it's probably more efficient than using any server side script such as PHP, ASP, etc. :)
Could you do me a tiny favour ed? Could you please visit this page (http://koobi-studio.com/gf/userAgent.php) with your Mac/IE and then copy and paste the output here please?
I just want to know what to look for in detecting a MAC IE browser.
Thanks :)
A recent thread on GF prompted me to upload this:
http://koobi-studio.com/gf/dynamicCss/
That's just an example of how to dynamically alter the stylesheet depending on the browser type.
NOTE: The CSS in "test.php" is "style.php", even though the extension is .php, depending on the headers sent (see the "header" function in my script), you can make it identify itself as another file type (mine identifies itself as text/css, i.e. CSS)
Glyphon
07-25-2004, 08:05 PM
not ed, but this is what i got.
Your "User Agent" is: Mozilla/4.0 (compatible; MSIE 5.23; Mac_PowerPC)
Koobi
07-26-2004, 11:04 PM
Thanks Glyphon. That was the latest MAC IE right? If there are any other versions that you have, don't let me stop you from giving me their User Agents as well :D
Glyphon
07-27-2004, 02:50 PM
its the newest version that i'm aware of.
and when you mean any other version, you mean of IE, or any browser.
for IE, i have 5.23, Safari i have 1.2.2, and some firefox (9.2???). but IE for mac hasn't been touched for a really long time. and i'm not expecting it to have any work done on it anytime soon either.
freakyclean
07-27-2004, 03:04 PM
Microsoft announced last year after Safari was released that IE for the mac would be discontinued.
IE 5 for the Mac is one of the worst browsers ever made IMO.
:)
Glyphon
07-27-2004, 05:14 PM
IE 5 for the Mac is one of the worst browsers ever made IMO.
:)
i completely agree. the only time i open it up is for testing purposes, because there is probably some backwoods hermit living under a rock in the middle of nowhere surfin' teh intarweb on a 9600baud modem using IE for Mac.
Koobi
07-27-2004, 05:23 PM
Glyphon, I wou;dn't mind the safari User Agent as well if you don't mind :)
IE Mac is definitely one of the worst :D
Thanks people. If you guys ever need a browser sniffer let me know.
Ed Hall
07-27-2004, 06:34 PM
Safari:
Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit/125.2 (KHTML, like Gecko) Safari/125.7
I agree about IE 5 I didn't realize until I started to go into standards and now I don't even want to touch the thing with a pole of any measure.
Ed Hall
07-27-2004, 06:45 PM
Bane could you explain this better to me? http://koobi-studio.com/gf/dynamicCss/ What I'm gathering is that depending on the browser type a different style sheet is set but what I don't get is the difference between style.txt and style.php since the txt has all the php coding in it how is that called I didn't see it in the source of text.php.
Glyphon
07-27-2004, 07:54 PM
Bane could you explain this better to me? http://koobi-studio.com/gf/dynamicCss/ What I'm gathering is that depending on the browser type a different style sheet is set but what I don't get is the difference between style.txt and style.php since the txt has all the php coding in it how is that called I didn't see it in the source of text.php.
i'm not exactly what you are asking, but is this it?
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>Test</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="imagetoolbar" content="no" />
// below is where style.php is called
<style type="text/css" media="screen">@import "style.php";</style>
Ed Hall
07-28-2004, 11:43 AM
yeah I noticed that part I was wondering about the style.txt how is that called?
Koobi
07-28-2004, 12:27 PM
style.txt and test.txt contain the code for style.php and test.php respectively.
I just gave them the txt extension so that you could view the code. Of course, I could have used highlight_file() (http://www.php.net/highlight_file) for this but the moment you try to view style.php, IE would ask to download it...there is a workaround for that too but I figured simply changing the extension would suffice.
None of the text files are used in the script itself, they are only there for the public to view its source code.
So in short:
style.txt contains the code for style.php
test.txt contains the code for test.php
Note that my CSS links to style.php and even though it has a PHP extension it is processed as a CSS file thanks to the header() (http://www.php.net/header) function.
Consider this:
When you type in the URL http://mysite.com/mypage.php your browser sends a "request" to the site's server requesting for that page and a "response" is sent back and it contains many details about the information about to be conveyed from the server to the browser like the size of the data and what sort of data it is (headers tell the browser what the data type is). Thanks to the header function, we can tell the browser that the style.php file is a text/css file and it treats it as such.
If you have any more questions let me know Ed....you've picked up a lot of neat tricks on CSS lately :)