Bluehost.com Web Hosting $6.95

IE7 and PHP Header Issue

This is a discussion on IE7 and PHP Header Issue within the alt.comp.lang.php forums, part of the PHP Programming Forums category; We are currently moving our employees to IE7. One of our custom interfaces brings up a file listing for a ...


Go Back   Usenet Forums > PHP Programming Forums > alt.comp.lang.php

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-15-2006
nightstar@gmail.com
 
Posts: n/a
Default IE7 and PHP Header Issue

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,

Reply With Quote
  #2 (permalink)  
Old 12-15-2006
Rik
 
Posts: n/a
Default Re: IE7 and PHP Header Issue

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


Reply With Quote
  #3 (permalink)  
Old 12-15-2006
nightstar@gmail.com
 
Posts: n/a
Default Re: IE7 and PHP Header Issue

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,

Reply With Quote
  #4 (permalink)  
Old 12-15-2006
Rik
 
Posts: n/a
Default Re: IE7 and PHP Header Issue

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 week, as IE7 will then be available to me.
--
Rik Wasmus


Reply With Quote
  #5 (permalink)  
Old 12-15-2006
Andy Hassall
 
Posts: n/a
Default Re: IE7 and PHP Header Issue

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
Reply With Quote
  #6 (permalink)  
Old 12-15-2006
nightstar@gmail.com
 
Posts: n/a
Default Re: IE7 and PHP Header Issue


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,


:

Reply With Quote
  #7 (permalink)  
Old 12-15-2006
Rik
 
Posts: n/a
Default Re: IE7 and PHP Header Issue

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


Reply With Quote
  #8 (permalink)  
Old 12-16-2006
OmegaJunior
 
Posts: n/a
Default Re: IE7 and PHP Header Issue

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/
Reply With Quote
  #9 (permalink)  
Old 12-16-2006
Andy Hassall
 
Posts: n/a
Default Re: IE7 and PHP Header Issue

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:
>
>> 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'
>>

>
>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
Reply With Quote
  #10 (permalink)  
Old 12-17-2006
Phil
 
Posts: n/a
Default Re: IE7 and PHP Header Issue

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
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 06:32 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0