Without full project requirements, it is not so simple to point you in the right direction. However, if your DNS server is on the same host as your PHP script, you can load the zone file into a text area and edit the file, saving the zone file (remembering to increment the serial number) and restart your DNS daemon. This course assumes several things, including that you know what you are doing regarding DNS functionality. If your requirements are different, please list them all and we can assist you further.
Please have a look on it http://forums.digitalpoint.com/showthread.php?t=1859016 This is what i really want.