For Programmers: Free Programming Magazines  


Home > Archive > PHP Language > December 2006 > IE7 and PHP Header Issue









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author IE7 and PHP Header Issue
nightstar@gmail.com

2006-12-15, 6:58 pm

We are currently moving our employees to IE7. One of our custom
interfaces brings up a file listing for a product number in IE (so the
employee can see a list of files). An example of this would be:

header("Location: \\\\server\\prodid");

We do it this way because the unsavvy users do not know how to browse
the network to the correct server and product id, and it makes it
faster.

It works in IE6 if you uncheck "Show Friendly HTTP Error Messages" in
the Advanced Internet Options.

Just a simple folder listing. Is there anything else that may need
checked / unchecked in IE7 to allow this.

Thanks,

Rik

2006-12-15, 6:58 pm

nightstar@gmail.com wrote:
> We are currently moving our employees to IE7. One of our custom
> interfaces brings up a file listing for a product number in IE (so the
> employee can see a list of files). An example of this would be:
>
> header("Location: \\\\server\\prodid");
>
> We do it this way because the unsavvy users do not know how to browse
> the network to the correct server and product id, and it makes it
> faster.
>
> It works in IE6 if you uncheck "Show Friendly HTTP Error Messages" in
> the Advanced Internet Options.
>
> Just a simple folder listing. Is there anything else that may need
> checked / unchecked in IE7 to allow this.


I don't have the ability to test with IE7 , but what does this do:
header("Location: file://server/prodid");

Seems to work fine here, but then again, you previous version did too with
IE6, which is the only one I have...
--
Rik Wasmus


nightstar@gmail.com

2006-12-15, 6:58 pm

Rik,

I did think of that just before reading your message. I just tried
what you said and no I still get the same error.

Thanks,

Rik

2006-12-15, 6:58 pm

nightstar@gmail.com wrote:
> I did think of that just before reading your message. I just tried
> what you said and no I still get the same error.


Damn,

well, if IE7 still supports browsing of the network (i.e. it works if you
manually type in the name), it's probably a security setting. I'd ask
around on IE7 developer forums/possible ng's. Has nothing to do with PHP
though.

Maybe more at the end of next w, as IE7 will then be available to me.
--
Rik Wasmus


Andy Hassall

2006-12-15, 6:58 pm

On 15 Dec 2006 08:41:56 -0800, nightstar@gmail.com wrote:

>We are currently moving our employees to IE7. One of our custom
>interfaces brings up a file listing for a product number in IE (so the
>employee can see a list of files). An example of this would be:
>
>header("Location: \\\\server\\prodid");
>
>We do it this way because the unsavvy users do not know how to browse
>the network to the correct server and product id, and it makes it
>faster.
>
>It works in IE6 if you uncheck "Show Friendly HTTP Error Messages" in
>the Advanced Internet Options.
>
>Just a simple folder listing. Is there anything else that may need
>checked / unchecked in IE7 to allow this.


This isn't a PHP issue, try asking in the relevant microsoft.* group.

You've issued an invalid Location header as a Windows UNC path is not a valid
absolute URI, so it can't appear after Location. So whatever happens next is
not well defined at the best of times.

For what it's worth, IE7 on my machine does open up a new Explorer window with
the UNC path. It doesn't open it in the browser, and not having IE6 any more I
can't tell if this is different behaviour.

--
Andy Hassall :: andy@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
nightstar@gmail.com

2006-12-15, 6:58 pm


Andy,

That is exactly what I want, to have it pop up in aonther window. I
dont see why it works in IE6 and not IE7. We even tried switching to
header("location: file:\\servername\prodidloc") and the same issue. I
guess Ill have to look around IE7 groups and see if there is a security
setting other than "Show Friendly HTTP Error Messages'

Thanks,


:

Rik

2006-12-15, 6:58 pm

nightstar@gmail.com wrote:
> Andy,
>
> That is exactly what I want, to have it pop up in aonther window. I
> dont see why it works in IE6 and not IE7. We even tried switching to
> header("location: file:\\servername\prodidloc") and the same issue. I
> guess Ill have to look around IE7 groups and see if there is a
> security setting other than "Show Friendly HTTP Error Messages'



Well, they advertise it as finally more independant of the OS, so that
might be it. Then again, that should only by the case with Windows Vista
AFAIK, and not XP.
--
Rik Wasmus


OmegaJunior

2006-12-16, 7:58 am

On Fri, 15 Dec 2006 21:40:41 +0100, <nightstar@gmail.com> wrote:

>
> Andy,
>
> That is exactly what I want, to have it pop up in aonther window. I
> dont see why it works in IE6 and not IE7. We even tried switching to
> header("location: file:\\servername\prodidloc") and the same issue. I
> guess Ill have to look around IE7 groups and see if there is a security
> setting other than "Show Friendly HTTP Error Messages'
>
> Thanks,
>
>
> :
>


Shouldn't that be file:///servername/prodidloc to work? (notice the 3
protocol slashes).
Where's the RFC if you need it?

--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
Andy Hassall

2006-12-16, 6:58 pm

On Sat, 16 Dec 2006 11:17:31 +0100, OmegaJunior
<omegajunior@spamremove.home.nl> wrote:

>On Fri, 15 Dec 2006 21:40:41 +0100, <nightstar@gmail.com> wrote:
>
>
>Shouldn't that be file:///servername/prodidloc to work? (notice the 3
>protocol slashes).
>Where's the RFC if you need it?


The RFC doesn't cover UNC paths; there's quite a lot open to interpretation.

The basic form is file://host/path , and in this case servername is a host, so
file://servername/prodidloc is reasonable.

file:///servername/prodidloc could be interpreted as having an empty host
component, so probably maps to a local path.

There's also an argument for file:////servername/prodidloc ("//servername"
being the "host" part, so 4 slashes) or even file://///servername/prodidloc
("//servername" is the start of a path which is valid on the local machine).

--
Andy Hassall :: andy@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
Phil

2006-12-16, 9:58 pm

nightstar@gmail.com wrote, On 16/12/06 5.41 a:
> We are currently moving our employees to IE7. One of our custom
> interfaces brings up a file listing for a product number in IE (so the
> employee can see a list of files). An example of this would be:
>
> header("Location: \\\\server\\prodid");
>
> We do it this way because the unsavvy users do not know how to browse
> the network to the correct server and product id, and it makes it
> faster.
>
> It works in IE6 if you uncheck "Show Friendly HTTP Error Messages" in
> the Advanced Internet Options.
>
> Just a simple folder listing. Is there anything else that may need
> checked / unchecked in IE7 to allow this.


I think you might be running into an IE7 security feature about
redirecting across zones.
You'd be better off to ask this in one of the microsoft.public.* groups.

-Phil
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2009 codecomments.com