| Last change
                  on this file since 188 was
                  131,
                  checked in by jbarnold, 19 years ago | 
        
          | added sql scripts | 
        
          | 
              
                  Property svn:executable set to
                  * | 
        | File size:
            327 bytes | 
      
      
        
  | Rev | Line |  | 
|---|
| [131] | 1 | #!/usr/bin/php | 
|---|
|  | 2 | <?php | 
|---|
|  | 3 |  | 
|---|
|  | 4 | list($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); | 
|---|
|  | 9 | if ($return_r == '0') echo $created; | 
|---|
|  | 10 |  | 
|---|
|  | 11 | ?> | 
|---|
       
      
      Note: See 
TracBrowser
        for help on using the repository browser.