I am using OS X Server, and want to create shared printers dynamically via a web page, I have achieved this for Samba printers by writing a PHP script to modify the smb.conf file, but I now need to create LPR/IP printers, I have written a script to edit the printers.conf in /etc/cups, but that does not appear to work, is there another file I need to edit?

Any ideas ???