[PHP-WIN] Re: IIS PHP 301 Redirect

2005-02-23 Thread Unknown W. Brackets
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

[PHP-WIN] Re: not so php related

2005-02-23 Thread Unknown W. Brackets
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

Re: [PHP-WIN] Re: Cookie Problems on Localhost

2005-02-23 Thread trlists
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

[PHP-WIN] IIS PHP 301 Redirect

2005-02-23 Thread emmerse
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

[PHP-WIN] Re: not so php related

2005-02-23 Thread Jason Barnett
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

Re: [PHP-WIN] Re: Cookie Problems on Localhost

2005-02-23 Thread Luis Moreira
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

RE: [PHP-WIN] Re: Cookie Problems on Localhost

2005-02-23 Thread Mikey
> 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:/

RE: [PHP-WIN] Re: Cookie Problems on Localhost

2005-02-23 Thread Mikey
> 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

[PHP-WIN] Re: Cookie Problems on Localhost

2005-02-23 Thread Joseph L. Mueller
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

[PHP-WIN] Re: Cookie Problems on Localhost

2005-02-23 Thread M. Sokolewicz
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

[PHP-WIN] Cookie Problems on Localhost

2005-02-23 Thread Joseph L. Mueller
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

[PHP-WIN] not so php related

2005-02-23 Thread Joakim Ling
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