source: locker/sql/bin/drop-database @ 363

Last change on this file since 363 was 327, checked in by andersk, 17 years ago
Add drop-database.
  • Property svn:executable set to *
File size: 371 bytes
Line 
1#!/usr/bin/php
2<?php
3
4list($h,$u,$p) = explode("\t",`/mit/scripts/sql/bin/get-password`);
5$d = $argv[1];
6$drop_r = explode(',',file_get_contents('http://sql.mit.edu/~sql/main/do/batch/drop_db?d=' . urlencode($d) . '&u=' . urlencode($u) . '&p=' . urlencode($p)));
7$return_r = array_shift($drop_r);
8$dropped = implode(',',$drop_r);
9if ($return_r == '0') echo $dropped;
10
11?>
Note: See TracBrowser for help on using the repository browser.