PHP Uploader displays PHP Code in IE. Works fine in Firefox, Safari
I just wrote a PHP file uploader. It works perfectly in Firefox (PC-XP) and
Safari (Mac OS-X). But in IE, when you click upload IE shows the PHP source
file. I've searched all my PHP books and online PHP and can find nothing
about IE showing the source.
I've looked at the code in Dreamweaver and several other editors. It sure
does not look like there are errors.
Help Please! Thank you.
Lynn
lynn [at] wetbasement.com
Re: PHP Uploader displays PHP Code in IE. Works fine in Firefox,Safari
havensnd [at] bellsouth.net wrote:
> I just wrote a PHP file uploader. It works perfectly in Firefox (PC-XP) and
> Safari (Mac OS-X). But in IE, when you click upload IE shows the PHP source
> file. I've searched all my PHP books and online PHP and can find nothing
> about IE showing the source.
There is some fault with your web server, as it sends out php code, if it had
been correctly setup, then there hadn't been any chance for MSIE to get the
php code, but the generated html.
--
//Aho
Re: PHP Uploader displays PHP Code in IE. Works fine in Firefox, Safari
On Jun 28, 9:30 pm, <haven... [at] bellsouth.net> wrote:
> I just wrote a PHP file uploader. It works perfectly in Firefox (PC-XP) and
> Safari (Mac OS-X). But in IE, when you click upload IE shows the PHP source
> file. I've searched all my PHP books and online PHP and can find nothing
> about IE showing the source.
>
> I've looked at the code in Dreamweaver and several other editors. It sure
> does not look like there are errors.
>
> Help Please! Thank you.
>
> Lynn
> l... [at] wetbasement.com
by "PHP source file" do you mean actual PHP code - if so the only
choice you have is to keep looking for errors in your code, because
there are some as Aho says.
Have you got weird server setup that detects browsers by user agent
and does things differently for IE?
It is perhaps because IE is sending slightly different details to the
server that your server is responding differently, have you got a bug
in your html, javascript that might not work properly in IE and so is
not sending the right details.
Source code is never returned unless theres a bug with your server
config, or a downloader script that is opening and serving php code,
it is always a server problem even if the problem is only caused by
bad client code.