cvs: docweb /scripts setup_users_database.php

From: Date: Fri, 29 Jul 2005 16:51:21 +0000
Subject: cvs: docweb /scripts setup_users_database.php
Groups: php.doc.web 
Request: Send a blank email to doc-web+get-697@lists.php.net to get a copy of this message
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 | * | license@php.net so we can mail you a copy immediately. | * +----------------------------------------------------------------------+ * | Authors: Jacques Marneweck <jacques@php.net> | * +----------------------------------------------------------------------+ * * $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: : */

« previous php.doc.web (#697) next »