RE: Re: Create subdomain using php in a linux machine

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi

Assuming you are using BIND. You need to edit the zone file using php. This
means giving php write access to the file.

If you can do this then.........


open the file for writing using fopen
add the domain record to the end

write the file to disk.

http://uk2.php.net/manual/en/function.fopen.php


restart BIND (or make a cron job to restart it every 10 minutes perhaps)

Done :)

HTH

Peter


> -----Original Message-----
> From: PHPDiscuss - PHP Newsgroups and mailing lists
> [mailto:jaydgus@xxxxxxxxx]
> Sent: 31 May 2004 08:53
> To: php-db@xxxxxxxxxxxxx
> Subject:  Re: Create subdomain using php in a linux machine
>
>
> Dhanya philip wrote:
>
> > Hi,
> >     I like to know how to create subdomain using php in a linux machine.
>
> > Thank You
>
> > Dhanya
>
> > Yahoo! India Matrimony: Find your partner online.
>
>
> Did you ever find a solution for this problem??  I'm interested in doing
> the same.
>
> JG
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
> Email has been scanned  for viruses and SPAM by Trader Mailmanager
> www.trader.uk.com
>
>
>
>

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux