Sei sulla pagina 1di 2

Installin WAMP Server to run PHP:

1. 2. 3. Goto www.wampserver.com and download WAMP Server. Just install it like other softwares by just clicking next next... Now go to START menu of windows and start wampserver. Generally, the path is Start -> WapmServer -> start WampServer Open your web browser and type http://localhost (or http://127.0.0.1 ) If you see a default WampServer home page, you installation is success. 5. Now put your php code in www folder in your wamp installation directory. Usually this is C:\wamp\www Now type http://localhost/filename.php in your browser. (where filename is your php file name) It will execute your php code.. Thats it...

4.

6.

After downloading the forum's archive, you will have to uncompress (extract) it and to send it to the server of your website. You also have to create the tables "users", "pm", "categories" and "topics" in the Data Base. This is the SQL query to execute:
--- Table structure for table `categories` -CREATE TABLE `categories` ( `id` smallint(6) NOT NULL, `name` varchar(256) NOT NULL, `description` text NOT NULL, `position` smallint(6) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; --- Table structure for table `pm` -CREATE TABLE `pm` ( `id` bigint(20) NOT NULL, `id2` int(11) NOT NULL, `title` varchar(256) NOT NULL, `user1` bigint(20) NOT NULL, `user2` bigint(20) NOT NULL, `message` text NOT NULL,

`timestamp` int(10) NOT NULL, `user1read` varchar(3) NOT NULL, `user2read` varchar(3) NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=utf8; --- Table structure for table `topics` -CREATE TABLE `topics` ( `parent` smallint(6) NOT NULL, `id` int(11) NOT NULL, `id2` int(11) NOT NULL, `title` varchar(256) NOT NULL, `message` longtext NOT NULL, `authorid` int(11) NOT NULL, `timestamp` int(11) NOT NULL, `timestamp2` int(11) NOT NULL, PRIMARY KEY (`id`,`id2`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; --- Table structure for table `users` -CREATE TABLE `users` ( `id` bigint(20) NOT NULL, `username` varchar(255) NOT NULL, `password` varchar(255) NOT NULL, `email` varchar(255) NOT NULL, `avatar` text NOT NULL, `signup_date` int(10) NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=utf8;

When the tables will be created, you have to put the data base IDs in the config.php file. Then, you have to sign up in your own forum. When it will be done, you have to change the value of the $admin variable of the config.php file to the username you used when you signed up. This variable indicate who is the administrator of the forum based on it username. Your forum will then be functional. Thank you and I hope this forum script will be useful http://www.webestools.com/scripts_tutorials-code-source-26-simple-php-forum-script-php-forumeasy-simple-script-code-download-free-php-forum-mysql.html

Potrebbero piacerti anche