Google Ads

Basic Online Forum PHP Script


Basic Online Forum PHP Script

This online forum allows you to post comments, upload and download files, read different file formats such as .pdf, .jpg, .png, .mp3, .swf, and .mp4. It also has a registration and log-in form. You can edit, and delete the post that you have posted.

 

Code:
 
  1. <link rel="shortcut icon" href="images/iconNHP.png" media="screen" type="image/png" title="NHP" />
  2. <title>NHP| View file</title>
  3. <a href="forum.php" style=" font-family:Arial">Back to forum page</a><body>
  4. <?php
  5. require "connect.php";
  6. if(isset($_GET['name'])){$n=$_GET['name'];
  7.       $h=mysql_query("Select count(ForumID) as 'v' from forums where Files like '%.pdf' and Files ='$n'");
  8.                                           while($hq=mysql_fetch_array($h)){
  9.                                                 $rt=$hq['v'];
  10.                                                 }
  11.                                                 if($rt!=0){?>
  12. <object data="<?php echo 'forum_folder/'.$n;?>" type="application/pdf" width="100%" height="100%"><p>Unable to load file</p></object>
  13. <?php                                                      }
  14.                                                 else{?>
  15.                                                  <OBJECT width="100%" height="100%"><PARAM name="movie" value="<?php echo 'forum_folder/'.$n;?>">
  16. <PARAM name="wmode" value="transparent">
  17. <PARAM name="quality" value="high">
  18. <EMBED width="100%" height="100%" src="<?php echo 'forum_folder/'.$n;?>" type="application/x-shockwave-flash" wmode="transparent" quality="HIGH" "=""></object>      
  19.                                           <?php            
  20.                                                       }
  21. }?>
  22. </body>

 

other features:
>auto fit pages upto 175% zoom in.
>page navigator.
>customized alert box (javascript)

note:
1. uploading file depends on the server. but in my case i can upload files upto 128MB. you can can it in php.ini

database name:
forum_database (dabase file include in the zip file)

sample account:
username: matteo
password: matteo

 

 

 


Related Post

Onkeyup Search Using CodeIgniter & Jquery PHP... Onkeyup Search Using CodeIgniter & Jquery PHP Script This is a simple search form using codeigniter and jquery. The main purpose of this projec...
Delete Multiple Records v3 PHP Script Delete Multiple Records v3 PHP Script In this project, you will learn on how to delete multiple records in your database. The user has the option t...
Social Prank v2.6 PHP Script Download Social Prank v2.6Social Prank v2.6You can build fake Facebook or Twitter posts and make funny conversations that have never existing. Prank your frien...
Loan Management System v1.4.5 PHP Script Download Loan Management System v1.4.5Loan Management System v1.4.5K-Loans is a powerful Loan Servicing script. This script is the fully functional PHP solutio...
HDPHP How To Do (Wikihow Script) – Sharing S... HDPHP How To Do (Wikihow Script) - Sharing SiteHDPHP How To Do (Wikihow Script) - Sharing SiteHDPHP How To Do Script is a Viral Articles Sharing Scrip...

Have any Question or Comment?

Leave a Reply

Your email address will not be published. Required fields are marked *

"