Multi-user file free upload voting system without database (1)_PHP tutorial
WBOY
Release: 2016-07-21 16:02:32
Original
1099 people have browsed it
This is an integrated uploading and voting system that I recently developed. It consists of 4 php and several record files. This is the first view.php, which is mainly responsible for displaying the file list, uploaded file form and file name verification. .The addresses in it are all real addresses. Please modify them accordingly when using them. I will provide specific usage methods in the last article.
< /head>
//col is the column, when it exists $uploadto/$col.if (record title), $col.ip, $col.ipd, $col.lst are legal // //What page is the page 1-n / /rowperpage is the number of lines per page
if(!$page) $page=0;
$rowperpage=5; if(!$col) die(" System error");
$cgiroot="http://eccct.51.net/cgi-bin/";//The location of this php $uploadto="../uploadfile/" .$col."/";
$fp=@fopen($uploadto.$col.".if","r") or die("System error");
$title=fread($fp,filesize($uploadto.$col.".if"));
fclose($fp);//$title is the name of this upload
$recfile=$uploadto.$col.".lst"; $fp=@fopen($recfile,"r") or die("System error");
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn