For Programmers: Free Programming Magazines  


Home > Archive > PHP on Windows > February 2005 > SV: [PHP-WIN] Re: not so php related









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 SV: [PHP-WIN] Re: not so php related
Joakim Ling

2005-02-25, 3:57 pm

Thanks for the tips.

I tried iis_add_server, but I don't get it to work.

iis_add_server("c:\\inetpub\\wwwroot\\", "php added", "127.0.0.1", "80", =
"php.localhost", 1, 1);

I receive no errors (code -501 if I print the result), and no server in =
IIS. Anyone done this before?=20

Im running on
PHP 5.0.3=20
IIS6=20
Win2003


-----Ursprungligt meddelande-----
Fr=E5n: Unknown W. Brackets [mailto:unknown@simplemachines.org]=20
Skickat: den 24 februari 2005 08:04
Till: php-windows@lists.php.net
=C4mne: [PHP-WIN] Re: not so php related

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=20
dnscmd.exe from the Windows Support Tools, found here:

http://www.microsoft.com/resources/...v/2003/standar=
d/proddocs/en-us/tools_howto.asp

Type dnscmd /? in a prompt for more information; you can pipe this was=20
exec, popen, system, and similar functions in PHP.

-[Unknown]

-------- Original Message --------

> Hi,
>=20
> =20
>=20
> 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.
>=20
> =20
>=20
> I know its not php related but if someone know please share.


--=20
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Sponsored Links







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

Copyright 2008 codecomments.com