Update: When I first released the 0.2 version of phpNews there were some problems with the admin page (you'll find you get a few 404 errors). If you find this you can download the new version linked below. Sorry for the inconveniance.
Here's the download and the readme.
======================================================= phpNews. Version 0.2 ======================================================= Copyright (c) 2000 Chuck Bullen (chuck@barrysworld.com) Distributed under the GNU General Public License. ======================================================= This collection of php scripts are designed to display and maintain a news section on your web page. To store the scripts a MySQL database is required. I originally just wrote this for my own website when I decided to learn PHP (and work out how to use a MySQL database with it). Because of this, it's currently not very well organised or set out. For that I apologise and hope to have it fixed by the next release. Here is the list of files which should be in this archive: README - this file. index.php - the news page (edit to how you want). func.php - functions & variables (need to edit). header.php - MySQL connect (need to edit) footer.php - MySQL close.. (you can leave it). admin/index.php - News Admin page. admin/edit-news.php - Editing news. admin/htpass.pl - Perl htpasswd-like util. admin/pass.html - HTML form for htpass.pl All the PHP is fairly dug into all of the php files, so for the two index.php's, and the edit-news.php you can edit the HTML around the PHP to make the pages to look however you want them. Here is the SQL create statement that you must use: CREATE TABLE news ( id int(8) unsigned DEFAULT '0' NOT NULL auto_increment, topic varchar(50) NOT NULL, date varchar(8) NOT NULL, item longtext NOT NULL, poster varchar(15) NOT NULL, PRIMARY KEY (id) ); You can change the table name to anything you want, but if you do, you must also change the variable '$news_table_name' in 'func.php' to what ever you decide you want to call the table. You may be wondering how your supposed to keep the admin section private to just you or your news team. Well on my site I decided the best course of action would be to use Apache .htaccess files to protect the entire admin directory. I'm sure most of you will know what I'm talking about, but if you don't there are lots of sites which do very good explanations. This is the preferred method of security because the News posting form trys to detect a posting name through this type of access. Here's the current revision list: version 0.2b - fixed a silly admin bug. version 0.2 - added page splitting for news. - added user detection. - fixed a few bugs with large amounts of news. version 0.1 - initial release. ------------------------------------------------------------------ If you use this script on your site, found a bug, or are having problems getting it to work, please don't hesitate to e-mail me. Thanks.