Hello folks,
I'm looking for a very simple PHP script to run from the shell command line.
The first script will add the 2 records in the DID and Destination tables, for example:
add_destination.php $PIN $DID $DESTINATION
The php script will create the new entry in the DID table with $DID as the key. Secondly, it will create the new entry in the Destinations table, pointing to the $DID record in the DID table and using PIN as the other required field.
A second script will delete the 2 records created above, for example:
del_destination.php $DID
I guess only $DID is needed for the script to locate the corresponding entries in the DID and Destination tables and have them removed.
Does anybody have a hint on how to do this?
Thanks
Clovis
|