source: locker/sql/bin/create-database @ 131

Last change on this file since 131 was 131, checked in by jbarnold, 18 years ago
added sql scripts
  • Property svn:executable set to *
File size: 327 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("http://sql.mit.edu/~sql/main/do/batch/create_db?d=$d&u=$u&p=$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.