source: trunk/locker/sql/bin/create-database @ 2659

Last change on this file since 2659 was 382, checked in by presbrey, 17 years ago
new SQL signup and server
  • Property svn:executable set to *
File size: 375 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$create_r = explode(',',file_get_contents('https://sql.mit.edu/main/do/batch/create_db?d=' . urlencode($d) . '&u=' . urlencode($u) . '&p=' . urlencode($p)));
7$return_r = array_shift($create_r);
8$created = implode(',',$create_r);
9if ($return_r == '0') echo $created;
10
11?>
Note: See TracBrowser for help on using the repository browser.