Jack Sen,
Order may matter (depending on PHP version) - try sending the Status
after the Location.
Are you sure PHP is outputting the right headers? The easiest way to
find out is to use the cgi version of PHP (php-cgi.exe or php.exe
depending on your version of PHP) so you can see the outputt
Jocke,
Well, some things you can do with the "iisfunc" PECL extension. See:
http://www.php.net/ref.iisfunc
However, modifying the DNS isn't part of that. It sounds like you want
dnscmd.exe from the Windows Support Tools, found here:
http://www.microsoft.com/resources/documentation/WindowsServ/2
On 23 Feb 2005 M. Sokolewicz wrote:
> both 'localhost' and any ip are not accepted as valid
> domain-identifiers in cookies (as per RFC). This simply means you're
> best off leaving them empty.
As far as I can tell this is incorrect. I think the relevant RFCs are
2109 and 2695. Both strongly
Hi,
I am having problem with PHP header location with IIS 6.0. Even after i sent
the
header("HTTP/1.1 301 Moved Permanently");
the
header (Location: url);
always return 302 redirect.
any solution to this problem?
Thanks.
Jack Sen
--
PHP Windows Mailing List (http://www.php.net/)
To unsubs
Joakim Ling wrote:
> Hi,
>
>
>
> Is there a way to add hosts in IIS6 and alias in DNS hosts from php or
> cmd. It would help me alot when I register a new customer.
>
>
In an Apache server you would use VirtualHosts... but then again I have
never used IIS so who knows what they call it on t
You can always try to set a cookie, but wether the browser allows it or
not, it's a whole different ball game.
I believe your problem lies here.
Anyway, the two scripts I attach, I have just tried, and the cookie was
set by the first, WITH A MESSAGE FROM THE BROWSER ASKING IF I ALLOWED IT.
The s
> Don't know if this will work, but have you tried setting an
> entry in your hosts file (C:\WINDOWS or
> C:\WINNT\system32\drivers\etc) for your machine name that
> points to 127.0.0.1?
>
> Eg:
> 127.0.0.1 mymachine
Whoops! Forgot to say that you should then access your site using
http:/
> That still leaves the problem of how to test cookies and
> sessions on a local system.
Don't know if this will work, but have you tried setting an entry in your
hosts file (C:\WINDOWS or C:\WINNT\system32\drivers\etc) for your machine
name that points to 127.0.0.1?
Eg:
127.0.0.1 mymachin
M. Sokolewicz wrote:
Joseph L. Mueller wrote:
I am testing some PHP code (example 15.5 from Sams Teach Yourself PHP
MySQL, PHP and Apache in 24 Hours). I am running running PHP 5.0.3
and Apache 2.0.43 on my WinXp Home system.
My problem is I cannot seem to set a cookie.
I tried using "localhost
Joseph L. Mueller wrote:
I am testing some PHP code (example 15.5 from Sams Teach Yourself PHP
MySQL, PHP and Apache in 24 Hours). I am running running PHP 5.0.3 and
Apache 2.0.43 on my WinXp Home system.
My problem is I cannot seem to set a cookie.
I tried using "localhost" and "127.0.0.1" for
I am testing some PHP code (example 15.5 from Sams Teach Yourself PHP
MySQL, PHP and Apache in 24 Hours). I am running running PHP 5.0.3 and
Apache 2.0.43 on my WinXp Home system.
My problem is I cannot seem to set a cookie.
I tried using "localhost" and "127.0.0.1" for the domain parameter, bu
Hi,
Is there a way to add hosts in IIS6 and alias in DNS hosts from php or
cmd. It would help me alot when I register a new customer.
I know its not php related but if someone know please share.
cheers
Jocke
12 matches
Mail list logo