ich_bin_Ingenieur <> wrote:
> I wrote a PERL script that receives GET data and returns a webpage,
> and this script works fine when used with Internet Explorer on a PC...
> But when running this script on Mozilla, Opera, or Safari on a MAC, it
> returns the a plain text file in the browser window of the HTML code,
> rather than displaying the HTML page.
> I'm not sure what's causing it to act like this. I've tested numerous
> PHP CGI's in the same browsers and they all work correctly.
Sorry, but CGI scripts aren't "run" by a browser - the browser just
renders what a _web server_ sends it and the _web server_ invokes
the CGI script, reading its output and passing that on to the client,
i.e. the browser.
> The script has been CHMODed to 755, it has a .cgi extention, and it
> returns an HTML page with the meta header <meta http-equiv="Content-
> Type" content="text/html; charset=iso-8859-1">. I've tried changing
> the permission, changing the extention, and I'm trying to see if I can
> Google this problem, but no luck yet.
Hard to say without any real information, but my best guess at the
moment is that the output of your script isn't HTML (a <meta...>
line alone somewhere in the text isn't enough) and the Internet
Exploder treats it for some strange reason as HTML anyway while
the more standard conforming browsers don't. Can one have a look
at the output of your script and/or what exactly arrives at the
browser?
Regards, Jens
--
\ Jens Thoms Toerring ___
\__________________________
http://toerring.de