cvs: docweb /scripts setup_rfc_database.php
| From: | Jacques Marneweck | Date: | Sat, 11 Sep 2004 12:38:28 +0000 |
| Subject: | cvs: docweb /scripts setup_rfc_database.php | ||
| Groups: | php.doc.web | ||
| Request: | Send a blank email to doc-web+get-273@lists.php.net to get a copy of this message | ||
jacques Sat Sep 11 08:38:28 2004 EDT
Added files:
/docweb/scripts setup_rfc_database.php
Log:
Added script which I used to generate the sqlite database for the RFC
feature.
http://cvs.php.net/co.php/docweb/scripts/setup_rfc_database.php?r=1.1&p=1
Index: docweb/scripts/setup_rfc_database.php
+++ docweb/scripts/setup_rfc_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_rfc_database.php,v 1.1 2004/09/11 12:38:28 jacques Exp $
*/
$idx = sqlite_open("../sqlite/rfc.sqlite", 0666);
if (!$idx) {
die("could not open $tmp_name");
}
sqlite_query($idx, file_get_contents("../rfc.sql"));
sqlite_close($idx);
/* vim: set noet ts=4 sw=4 ft=php: : */