cvs: docweb /scripts setup_users_database.php

[email protected] ("Jacques Marneweck")
Newsgroups php.doc.web
Message-ID <cvsjacques1122655881@cvsserver>
jacques		Fri Jul 29 12:51:21 2005 EDT

  Added files:                 
    /docweb/scripts	setup_users_database.php 
  Log:
  Add setup script for users database.
  
  

http://cvs.php.net/co.php/docweb/scripts/setup_users_database.php?r=1.1&p=1
Index: docweb/scripts/setup_users_database.php
+++ docweb/scripts/setup_users_database.php
#!/usr/local/bin/php
<?php
/**
 * +----------------------------------------------------------------------+
 * | PHP Documentation Site Source Code                                   |
 * +----------------------------------------------------------------------+
 * | Copyright (c) 1997-2004 The PHP Group                                |
 * +----------------------------------------------------------------------+
 * | This source file is subject to version 3.0 of the PHP license,       |
 * | that is bundled with this package in the file LICENSE, and is        |
 * | available at through the world-wide-web at                           |
 * | http://www.php.net/license/3_0.txt.                                  |
 * | If you did not receive a copy of the PHP license and are unable to   |
 * | obtain it through the world-wide-web, please send a note to          |
 * | [email protected] so we can mail you a copy immediately.               |
 * +----------------------------------------------------------------------+
 * | Authors: Jacques Marneweck <[email protected]>                         |
 * +----------------------------------------------------------------------+
 *
 * $Id: setup_users_database.php,v 1.1 2005/07/29 16:51:19 jacques Exp $
 */

$idx = sqlite_open("../sqlite/users.sqlite", 0666);
if (!$idx) {
    die("could not open ../sqlite/users.sqlite");
}
sqlite_query($idx, file_get_contents("../sql/users.sql"));
sqlite_close($idx);

/* vim: set noet ts=4 sw=4 ft=php: : */
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.